@fun-xyz/fiat-contract 0.46.0 → 0.48.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.
@@ -8,10 +8,8 @@
8
8
  * `orderPending` answers only `order` and has no request either: the client follows its order body's `delivery`
9
9
  * transition when it offers one, and otherwise sends the same `order` after it.
10
10
  *
11
- * Guest checkout is the routing path `MOONPAY/guest_checkout`. A quote whose `handoff.path` is `guest_checkout`
12
- * runs this flow with `path: 'guest_checkout'` on every request: `session` answers `pay`, and after `pay` the
13
- * client sends `order`, or `decline` when the device cannot pay as a guest. `decline` is request-only, like
14
- * `observe`, and is answered `refused NOT_ELIGIBLE / REQUOTE`; the requote then leaves the guest path out.
11
+ * Guest checkout uses provider `MOONPAY_GUEST` and its separate contract in `./moonpay-guest`.
12
+ * The phone and pay primitives below are shared MoonPay wire types, outside this provider's request and response unions.
15
13
  *
16
14
  * The body is `MoonPayNextRequest`: `provider`, the shared `geo`, a mode-2 client's `depositAddress`,
17
15
  * the context (`checkout`, and `credentials` after `connect`), and the action's result. Identity comes
@@ -32,7 +30,7 @@ import type { FiatAmount, DestinationAsset, FiatGeo, FiatStepResponse, FormField
32
30
  export declare const MOONPAY_ENDPOINTS: {
33
31
  readonly next: "POST /fiat/next";
34
32
  };
35
- export type MoonPayAction = 'observe' | 'consent' | 'session' | 'connect' | 'pay' | 'decline' | 'kyc' | 'prepareCapture' | 'capture' | 'wait' | 'order';
33
+ export type MoonPayAction = 'observe' | 'consent' | 'session' | 'connect' | 'phone' | 'phoneCode' | 'pay' | 'decline' | 'kyc' | 'prepareCapture' | 'capture' | 'wait' | 'order';
36
34
  /** The checkout terms. The client holds them and sends them on every request. */
37
35
  export interface MoonPayCheckout {
38
36
  amount: FiatAmount;
@@ -51,17 +49,13 @@ export interface MoonPaySdkCredentials {
51
49
  /**
52
50
  * On every request, not part of the result. `credentials` is present after `connect`.
53
51
  * `destinationAsset` is the asset the user receives at the end; `checkout.destination` stays the quote's
54
- * asset, which MoonPay delivers. `path` is `guest_checkout` when the quote's `handoff.path` was; absent is the
55
- * normal flow.
52
+ * asset, which MoonPay delivers.
56
53
  */
57
54
  export type MoonPayRequestContext = {
58
55
  checkout: MoonPayCheckout;
59
56
  credentials?: MoonPaySdkCredentials;
60
57
  destinationAsset?: DestinationAsset;
61
- path?: MoonPayPath;
62
58
  };
63
- /** A MoonPay routing path other than the normal flow, named by the quote's `handoff.path`. */
64
- export type MoonPayPath = 'guest_checkout';
65
59
  /**
66
60
  * The parameters for the device `client.getQuote`, not a quote. The backend builds them because the
67
61
  * wallet must be the verified one and MoonPay's currency codes differ by environment.
@@ -127,6 +121,41 @@ export type MoonPayConnectRequest = {
127
121
  customerId: string;
128
122
  accessToken: string;
129
123
  };
124
+ /**
125
+ * The guest path asks for the buyer's phone before `session`. `CODE_EXPIRED`: the last code's time ran out, or five
126
+ * wrong codes ended it. The same shape as Coinbase's `session` next action.
127
+ */
128
+ export type MoonPayPhoneNextAction = {
129
+ next: 'phone';
130
+ error: 'CODE_EXPIRED' | null;
131
+ };
132
+ /**
133
+ * Text a code to `phoneNumber` (E.164), or send a new code to the phone of the live challenge `resend` names. Spends
134
+ * one unit of the per-login code budget only when a code is sent. The same shapes as Coinbase's `session` request.
135
+ */
136
+ export type MoonPayPhoneRequest = {
137
+ action: 'phone';
138
+ phoneNumber: string;
139
+ } | {
140
+ action: 'phone';
141
+ resend: string;
142
+ };
143
+ /**
144
+ * Ask for the code just texted. `expiresAt` is ISO-8601. `CODE_INVALID`: the last code sent was wrong. The same
145
+ * shape as Coinbase's `otp` next action.
146
+ */
147
+ export type MoonPayPhoneCodeNextAction = {
148
+ next: 'phoneCode';
149
+ verificationRef: string;
150
+ expiresAt: string;
151
+ error: 'CODE_INVALID' | null;
152
+ };
153
+ /** `otpCode` is six digits. Named so request logs redact it. A correct code answers `session`. */
154
+ export type MoonPayPhoneCodeRequest = {
155
+ action: 'phoneCode';
156
+ verificationRef: string;
157
+ otpCode: string;
158
+ };
130
159
  /**
131
160
  * The guest path's answer to `session`. Run the hidden connection check with `sessionToken`. When it returns
132
161
  * `connectionRequired` with `capabilities.guestCheckout` and no `mismatch`, get the device quote from
@@ -267,7 +296,7 @@ export type MoonPayOrderPendingNextAction = {
267
296
  retryAfterMs: number;
268
297
  order: FiatStepResponse | null;
269
298
  };
270
- export type MoonPayRequest = MoonPayRequestContext & (MoonPayObserveRequest | MoonPayConsentRequest | MoonPaySessionRequest | MoonPayConnectRequest | MoonPayDeclineRequest | MoonPayKycRequest | MoonPayPrepareCaptureRequest | MoonPayCaptureRequest | MoonPayOrderRequest);
299
+ export type MoonPayRequest = MoonPayRequestContext & (MoonPayObserveRequest | MoonPayConsentRequest | MoonPaySessionRequest | MoonPayConnectRequest | MoonPayKycRequest | MoonPayPrepareCaptureRequest | MoonPayCaptureRequest | MoonPayOrderRequest);
271
300
  /**
272
301
  * The wire body. The orchestrator reads `provider`, `geo` and `depositAddress` (as on every
273
302
  * `FiatNextRequest`); MoonPay's action schemas read the rest.
@@ -289,7 +318,7 @@ export type MoonPayStepRefusal = 'NOT_ELIGIBLE' | 'DOCUMENTS_REQUIRED' | 'FINAL_
289
318
  * assertion's. `UNRECORDABLE`: a charge no retry can record, held for refund review.
290
319
  */
291
320
  export type MoonPayOrderRefusal = 'CUSTOMER_MISMATCH' | 'WALLET_MISMATCH' | 'UNRECORDABLE';
292
- export type MoonPayNextAction = MoonPayConsentNextAction | MoonPaySessionNextAction | MoonPayConnectNextAction | MoonPayPayNextAction | MoonPayKycNextAction | MoonPayPrepareCaptureNextAction | MoonPayCaptureNextAction | MoonPayWaitNextAction | MoonPayOrderNextAction;
321
+ export type MoonPayNextAction = MoonPayConsentNextAction | MoonPaySessionNextAction | MoonPayConnectNextAction | MoonPayKycNextAction | MoonPayPrepareCaptureNextAction | MoonPayCaptureNextAction | MoonPayWaitNextAction | MoonPayOrderNextAction;
293
322
  /**
294
323
  * The order is terminal. `order` is its body, which the shared order screen renders. Nothing is left to
295
324
  * send to `/fiat/next`. A converted order's `SETTLED` body offers the `delivery` transition: follow it.
@@ -304,7 +333,7 @@ export type MoonPayRefused<R, V> = {
304
333
  reason: R;
305
334
  recovery: V;
306
335
  };
307
- /** The answer to `observe`, `consent`, `session`, `connect`, `decline`, `kyc`, `prepareCapture` and `capture`. */
336
+ /** The answer to `observe`, `consent`, `session`, `connect`, `phone`, `phoneCode`, `decline`, `kyc`, `prepareCapture` and `capture`. */
308
337
  export type MoonPayStepResponse = MoonPayNextAction | MoonPayRefused<MoonPayStepRefusal, 'REQUOTE' | 'NONE'>;
309
338
  /**
310
339
  * The answer to `order`. `done` once the order is terminal. A failed charge is recorded too: `done` with
@@ -321,7 +350,6 @@ export type MoonPayResponseFor = {
321
350
  consent: MoonPayStepResponse;
322
351
  session: MoonPayStepResponse;
323
352
  connect: MoonPayStepResponse;
324
- decline: MoonPayStepResponse;
325
353
  kyc: MoonPayStepResponse;
326
354
  prepareCapture: MoonPayStepResponse;
327
355
  capture: MoonPayStepResponse;
@@ -330,8 +358,9 @@ export type MoonPayResponseFor = {
330
358
  /** `RETRY` sends the same request again. `REQUOTE` goes back to routing. `NONE` ends the flow. */
331
359
  export type MoonPayRecovery = 'RETRY' | 'REQUOTE' | 'NONE';
332
360
  /**
333
- * `SESSION_BUDGET_SPENT`: the per-login SDK session mint budget that `session` spends (429).
334
- * `RATE_LIMITED`: the action's request budget (429). `PROVIDER_UNAVAILABLE`: MoonPay is down (503).
361
+ * `SESSION_BUDGET_SPENT`: the per-login SDK session mint budget that `session` spends, or the per-login code budget
362
+ * that `phone` spends (429).
363
+ * `RATE_LIMITED`: the action's request budget (429). `PROVIDER_UNAVAILABLE`: MoonPay, or the phone code sender, is down (503).
335
364
  * `KYC_PROVIDER_UNAVAILABLE`: the KYC provider (Sumsub) is down (503). `SERVICE_UNAVAILABLE`: one of
336
365
  * Fun's own stores is down (503). `INVALID_REQUEST`: a bad body (400).
337
366
  */
@@ -3,10 +3,9 @@
3
3
  * exported from the package root, never from `./moonpay`, so the production entry stays free of zod.
4
4
  */
5
5
  import { z } from 'zod';
6
- import type { MoonPayCaptureDocument, MoonPayCaptureNextAction, MoonPayCaptureRequest, MoonPayCheckout, MoonPayConnectNextAction, MoonPayConnectRequest, MoonPayConsentNextAction, MoonPayConsentRequest, MoonPayDeclineRequest, MoonPayDone, MoonPayErrorBody, MoonPayFault, MoonPayGuestDeclineReason, MoonPayKycNextAction, MoonPayKycRequest, MoonPayNextRequest, MoonPayObserveRequest, MoonPayOrderNextAction, MoonPayOrderPendingNextAction, MoonPayOrderRequest, MoonPayOrderResponse, MoonPayPath, MoonPayPayNextAction, MoonPayPrepareCaptureNextAction, MoonPayPrepareCaptureRequest, MoonPayReask, MoonPayReaskReason, MoonPayReaskRequirement, MoonPayNextAction, MoonPayQuoteInput, MoonPayRequest, MoonPayRequestContext, MoonPayResponseFor, MoonPaySdkCredentials, MoonPaySessionNextAction, MoonPaySessionRequest, MoonPayStepResponse, MoonPayWaitNextAction } from './moonpay';
6
+ import type { MoonPayCaptureDocument, MoonPayCaptureNextAction, MoonPayCaptureRequest, MoonPayCheckout, MoonPayConnectNextAction, MoonPayConnectRequest, MoonPayConsentNextAction, MoonPayConsentRequest, MoonPayDeclineRequest, MoonPayDone, MoonPayErrorBody, MoonPayFault, MoonPayGuestDeclineReason, MoonPayKycNextAction, MoonPayKycRequest, MoonPayNextRequest, MoonPayObserveRequest, MoonPayOrderNextAction, MoonPayOrderPendingNextAction, MoonPayOrderRequest, MoonPayOrderResponse, MoonPayPayNextAction, MoonPayPhoneCodeNextAction, MoonPayPhoneCodeRequest, MoonPayPhoneNextAction, MoonPayPhoneRequest, MoonPayPrepareCaptureNextAction, MoonPayPrepareCaptureRequest, MoonPayReask, MoonPayReaskReason, MoonPayReaskRequirement, MoonPayNextAction, MoonPayQuoteInput, MoonPayRequest, MoonPayRequestContext, MoonPayResponseFor, MoonPaySdkCredentials, MoonPaySessionNextAction, MoonPaySessionRequest, MoonPayStepResponse, MoonPayWaitNextAction } from './moonpay';
7
7
  export declare const MoonPayCheckoutSchema: z.ZodType<MoonPayCheckout>;
8
8
  export declare const MoonPaySdkCredentialsSchema: z.ZodType<MoonPaySdkCredentials>;
9
- export declare const MoonPayPathSchema: z.ZodType<MoonPayPath>;
10
9
  export declare const MoonPayRequestContextSchema: z.ZodType<MoonPayRequestContext>;
11
10
  export declare const MoonPayQuoteInputSchema: z.ZodType<MoonPayQuoteInput>;
12
11
  export declare const MoonPayGuestDeclineReasonSchema: z.ZodType<MoonPayGuestDeclineReason>;
@@ -14,6 +13,8 @@ export declare const MoonPayObserveRequestSchema: z.ZodType<MoonPayRequestContex
14
13
  export declare const MoonPayConsentRequestSchema: z.ZodType<MoonPayRequestContext & MoonPayConsentRequest>;
15
14
  export declare const MoonPaySessionRequestSchema: z.ZodType<MoonPayRequestContext & MoonPaySessionRequest>;
16
15
  export declare const MoonPayConnectRequestSchema: z.ZodType<MoonPayRequestContext & MoonPayConnectRequest>;
16
+ export declare const MoonPayPhoneRequestSchema: z.ZodType<MoonPayRequestContext & MoonPayPhoneRequest>;
17
+ export declare const MoonPayPhoneCodeRequestSchema: z.ZodType<MoonPayRequestContext & MoonPayPhoneCodeRequest>;
17
18
  export declare const MoonPayDeclineRequestSchema: z.ZodType<MoonPayRequestContext & MoonPayDeclineRequest>;
18
19
  export declare const MoonPayKycRequestSchema: z.ZodType<MoonPayRequestContext & MoonPayKycRequest>;
19
20
  export declare const MoonPayPrepareCaptureRequestSchema: z.ZodType<MoonPayRequestContext & MoonPayPrepareCaptureRequest>;
@@ -24,6 +25,8 @@ export declare const MoonPayNextRequestSchema: z.ZodType<MoonPayNextRequest>;
24
25
  export declare const MoonPayConsentNextActionSchema: z.ZodType<MoonPayConsentNextAction>;
25
26
  export declare const MoonPaySessionNextActionSchema: z.ZodType<MoonPaySessionNextAction>;
26
27
  export declare const MoonPayConnectNextActionSchema: z.ZodType<MoonPayConnectNextAction>;
28
+ export declare const MoonPayPhoneNextActionSchema: z.ZodType<MoonPayPhoneNextAction>;
29
+ export declare const MoonPayPhoneCodeNextActionSchema: z.ZodType<MoonPayPhoneCodeNextAction>;
27
30
  export declare const MoonPayPayNextActionSchema: z.ZodType<MoonPayPayNextAction>;
28
31
  export declare const MoonPayKycNextActionSchema: z.ZodType<MoonPayKycNextAction>;
29
32
  export declare const MoonPayPrepareCaptureNextActionSchema: z.ZodType<MoonPayPrepareCaptureNextAction>;
package/dist/routing.d.ts CHANGED
@@ -21,7 +21,7 @@
21
21
  * an extra key or a blank string fails them, so send only the declared fields.
22
22
  */
23
23
  import type { CountryCode, FiatCurrencyCode, PaymentMethodCategory } from './codes';
24
- import type { FiatAmount, DestinationAsset, FiatHandoffPath, FiatProvider, QuoteLimitRange } from './types';
24
+ import type { FiatAmount, DestinationAsset, FiatProvider, QuoteLimitRange } from './types';
25
25
  export declare const ROUTING_ENDPOINTS: {
26
26
  readonly table: "POST /fiat/routing/table";
27
27
  /** Temporary: `POST /fiat/next` replaces it for each provider that moves there. */
@@ -81,7 +81,7 @@ export type RoutingVisibility = 'COMPLETE' | 'PARTIAL' | 'AUTH_GATED';
81
81
  */
82
82
  export type RoutingUnavailableReason = 'USER_LIMIT' | 'KYC_REJECTED' | 'PROVIDER_OUTAGE' | 'NOT_SERVED';
83
83
  /** The providers the backend can route and take an order through. */
84
- export type RoutingProvider = Extract<FiatProvider, 'TRANSAK' | 'BANXA' | 'MOONPAY' | 'STRIPE' | 'COINBASE'>;
84
+ export type RoutingProvider = Extract<FiatProvider, 'TRANSAK' | 'BANXA' | 'MOONPAY' | 'MOONPAY_GUEST' | 'STRIPE' | 'COINBASE'>;
85
85
  export interface RoutingTableProvider {
86
86
  provider: RoutingProvider;
87
87
  next: RoutingNextStep;
@@ -162,12 +162,6 @@ export interface FiatRoutingQuoteTerms {
162
162
  * (conversion routes, fee subsidy); placing an order still requires a Fun session.
163
163
  */
164
164
  depositAddress?: string;
165
- /**
166
- * Provider paths this client can run, each at most once. Routing considers such a path only when it is
167
- * listed, and a quote that picks one carries `handoff.path`. Leave a path out of the requote after its
168
- * flow answers `refused` with `REQUOTE`, so routing can still pick the provider's other paths.
169
- */
170
- handoffPaths?: FiatHandoffPath[];
171
165
  }
172
166
  /**
173
167
  * `POST /fiat/routing/quote`: the terms plus which providers to price, in one of two forms.
package/dist/schemas.d.ts CHANGED
@@ -28,7 +28,7 @@
28
28
  */
29
29
  import { z } from 'zod';
30
30
  import type { UsStateCode } from './codes';
31
- import type { BlockedReason, CryptoAmount, FailureReason, FeeLine, FiatAmount, FiatEndpoint, FiatHandoffPath, FiatProvider, FiatAuthRefreshRequest, FiatAuthRefreshResponse, FiatAuthRevokeRequest, FiatAuthStartRequest, FiatAuthVerifyRequest, FiatSession, FiatStepResponse, FieldSpec, FlowState, FormDescriptor, FormField, FormFieldType, InstructionField, Instructions, Instrument, JsonValue, KYCProvider, KycReviewDuration, OrderRef, OrderStatus, OrderSummary, PollSpec, PreparedPayment, PaymentSurface, Quote, QuoteLimitRange, QuoteLimits, Recovery, Refund, ReportSpec, SelectOption, StatusHistoryEntry, Surface, PreferredIdentityDocument, KycFieldId, ClientExecutedDelivery, KycSdkResultReport, SurfaceKind, SurfaceProvider, TermsAcceptance, Transition, TransitionInputs, TransitionParams, Tx, DestinationAsset, FiatGeo, FiatNextRequest } from './types';
31
+ import type { BlockedReason, CryptoAmount, FailureReason, FeeLine, FiatAmount, FiatEndpoint, FiatProvider, FiatAuthRefreshRequest, FiatAuthRefreshResponse, FiatAuthRevokeRequest, FiatAuthStartRequest, FiatAuthVerifyRequest, FiatSession, FiatStepResponse, FieldSpec, FlowState, FormDescriptor, FormField, FormFieldType, InstructionField, Instructions, Instrument, JsonValue, KYCProvider, KycReviewDuration, OrderRef, OrderStatus, OrderSummary, PollSpec, PreparedPayment, PaymentSurface, Quote, QuoteLimitRange, QuoteLimits, Recovery, Refund, ReportSpec, SelectOption, StatusHistoryEntry, Surface, PreferredIdentityDocument, KycFieldId, ClientExecutedDelivery, KycSdkResultReport, SurfaceKind, SurfaceProvider, TermsAcceptance, Transition, TransitionInputs, TransitionParams, Tx, DestinationAsset, FiatGeo, FiatNextRequest } from './types';
32
32
  import type { FiatTermsErrorBody, FiatTermsRequest, FiatTermsResponse, TermsDocument, TermsDocumentAcceptance } from './terms';
33
33
  import type { FiatRoutingQuoteErrorBody, FiatRoutingQuoteRequest, FiatRoutingQuoteTerms, FiatRoutingTableErrorBody, FiatRoutingTableRequest, FiatRoutingTableResponse } from './routing';
34
34
  export declare const JsonSchema: z.ZodType<JsonValue>;
@@ -38,7 +38,6 @@ export declare const ENDPOINT_PATTERN: RegExp;
38
38
  export declare const FiatEndpointSchema: z.ZodType<FiatEndpoint>;
39
39
  export declare const UsStateCodeSchema: z.ZodType<UsStateCode>;
40
40
  export declare const FiatProviderSchema: z.ZodType<FiatProvider>;
41
- export declare const FiatHandoffPathSchema: z.ZodType<FiatHandoffPath>;
42
41
  export declare const KYCProviderSchema: z.ZodType<KYCProvider>;
43
42
  export declare const SurfaceProviderSchema: z.ZodType<SurfaceProvider>;
44
43
  export declare const OrderStatusSchema: z.ZodType<OrderStatus>;
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.46.0";
40
+ var version = "0.48.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-IAKK466V.mjs";
15
+ } from "./chunk-4ZHY4P3K.mjs";
16
16
  export {
17
17
  DOCUMENTED_ENDPOINTS,
18
18
  FUN_AUTH_ERROR_CODES,
package/dist/terms.js CHANGED
@@ -60,7 +60,8 @@ var MOONPAY_KYC_SHARING = {
60
60
  links: [{ label: "Persona Privacy Policy", url: "https://withpersona.com/legal/privacy-policy" }]
61
61
  };
62
62
  var PROVIDER_CHECKOUT_DOCUMENTS = {
63
- MOONPAY: [MOONPAY_TERMS]
63
+ MOONPAY: [MOONPAY_TERMS],
64
+ MOONPAY_GUEST: [MOONPAY_TERMS]
64
65
  };
65
66
  var PROVIDER_KYC_DOCUMENTS = {
66
67
  MOONPAY: [MOONPAY_KYC_SHARING]
package/dist/terms.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  PROVIDER_CHECKOUT_DOCUMENTS,
5
5
  PROVIDER_KYC_DOCUMENTS,
6
6
  PUBLISHED_TERMS_DOCUMENTS
7
- } from "./chunk-2CCO7UIS.mjs";
7
+ } from "./chunk-TIQALG7X.mjs";
8
8
  export {
9
9
  FIAT_TERMS_ENDPOINT,
10
10
  FUN_KYC_CONSENT_DOCUMENTS,
package/dist/types.d.ts CHANGED
@@ -61,7 +61,7 @@ export type FiatEndpoint = 'GET /fiat/payment-methods' | 'POST /fiat/quote' | 'P
61
61
  * Routing metadata, not sequencing policy. Reserved values may be emitted only after their adapter
62
62
  * and conformance fixture land.
63
63
  */
64
- export type FiatProvider = 'TRANSAK' | 'SWAPPED' | 'BANXA' | 'MOONPAY' | 'STRIPE' | 'COINBASE' | 'CROSSMINT';
64
+ export type FiatProvider = 'TRANSAK' | 'SWAPPED' | 'BANXA' | 'MOONPAY' | 'MOONPAY_GUEST' | 'STRIPE' | 'COINBASE' | 'CROSSMINT';
65
65
  /**
66
66
  * The order status vocabulary. Monotonic ranks, no backwards moves. Terminal outcomes are
67
67
  * OrderStatus, never FlowState kinds.
@@ -830,23 +830,13 @@ export type FiatStepResponse = (FiatStepResponseBase & {
830
830
  preparedPayment?: PreparedPayment;
831
831
  /**
832
832
  * The provider runs its own flow from here (`POST /fiat/next`). Present
833
- * only on a `QUOTE`, when the request's `handoffs` named this provider; the response then
834
- * carries no transitions. `path` names a provider path the request offered in `handoffPaths`
835
- * (`guest_checkout` for `MOONPAY/guest_checkout`); the client sends it on every `/fiat/next` request.
833
+ * only on a `QUOTE` selected for a provider-owned checkout flow; the response then
834
+ * carries no transitions. The selected provider owns the flow on `/fiat/next`.
836
835
  */
837
836
  handoff?: {
838
837
  provider: FiatProvider;
839
- path?: FiatHandoffPathName;
840
838
  };
841
839
  });
842
- /**
843
- * A provider path the client can run, offered on the quote request in `handoffPaths`. Routing considers
844
- * a path listed here only when the request offers it, so leaving it out of a requote excludes that path
845
- * alone and keeps its provider's other paths.
846
- */
847
- export type FiatHandoffPath = 'MOONPAY/guest_checkout';
848
- /** The path part of a `FiatHandoffPath`, as `handoff.path` names it. */
849
- export type FiatHandoffPathName = FiatHandoffPath extends `${string}/${infer Path}` ? Path : never;
850
840
  /**
851
841
  * The asset the user receives at the end of the purchase. The client always sends it. The backend
852
842
  * compares it with the partner's configured asset and adds a conversion only when they differ,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fun-xyz/fiat-contract",
3
- "version": "0.46.0",
3
+ "version": "0.48.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": {
@@ -48,7 +48,12 @@
48
48
  "import": "./dist/routing.mjs",
49
49
  "require": "./dist/routing.js"
50
50
  },
51
- "./package.json": "./package.json"
51
+ "./package.json": "./package.json",
52
+ "./moonpay-guest": {
53
+ "types": "./dist/providers/moonpay-guest.d.ts",
54
+ "import": "./dist/providers/moonpay-guest.mjs",
55
+ "require": "./dist/providers/moonpay-guest.js"
56
+ }
52
57
  },
53
58
  "files": [
54
59
  "dist",
@@ -113,6 +118,9 @@
113
118
  ],
114
119
  "routing": [
115
120
  "./dist/routing.d.ts"
121
+ ],
122
+ "moonpay-guest": [
123
+ "./dist/providers/moonpay-guest.d.ts"
116
124
  ]
117
125
  }
118
126
  }