@moonpay/platform-protocol 1.13.1 → 1.14.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.
@@ -124,6 +124,20 @@ type CddEmploymentStatus = 'employedOrSelfEmployed' | 'retired' | 'student' | 'u
124
124
  * The customer's primary source of wealth.
125
125
  */
126
126
  type CddSourceOfWealth = 'salary' | 'savings' | 'investments' | 'cryptoTrading' | 'other';
127
+ /**
128
+ * A challenge that must be resolved by rendering a MoonPay-hosted frame.
129
+ */
130
+ type Challenge = {
131
+ /**
132
+ * The type of challenge resolution required.
133
+ */
134
+ kind: ChallengeKind;
135
+ /**
136
+ * Fully-formed challenge frame URL. Render directly without parsing.
137
+ */
138
+ url: string;
139
+ };
140
+ type ChallengeKind = 'frame';
127
141
  /**
128
142
  * Request body for creating an identity.
129
143
  */
@@ -542,6 +556,10 @@ type GetQuoteResponse = {
542
556
  * An opaque token representing the quote to initiate payment frames.
543
557
  */
544
558
  signature: string;
559
+ /**
560
+ * A challenge the partner must surface and the customer must complete before the quote can proceed — for example, verifying identity to raise guest-checkout limits. Present only when the quote requires one; omitted otherwise.
561
+ */
562
+ challenge?: Challenge;
545
563
  };
546
564
  type IPv4Address = string;
547
565
  type IPv6Address = string;
@@ -124,6 +124,20 @@ type CddEmploymentStatus = 'employedOrSelfEmployed' | 'retired' | 'student' | 'u
124
124
  * The customer's primary source of wealth.
125
125
  */
126
126
  type CddSourceOfWealth = 'salary' | 'savings' | 'investments' | 'cryptoTrading' | 'other';
127
+ /**
128
+ * A challenge that must be resolved by rendering a MoonPay-hosted frame.
129
+ */
130
+ type Challenge = {
131
+ /**
132
+ * The type of challenge resolution required.
133
+ */
134
+ kind: ChallengeKind;
135
+ /**
136
+ * Fully-formed challenge frame URL. Render directly without parsing.
137
+ */
138
+ url: string;
139
+ };
140
+ type ChallengeKind = 'frame';
127
141
  /**
128
142
  * Request body for creating an identity.
129
143
  */
@@ -542,6 +556,10 @@ type GetQuoteResponse = {
542
556
  * An opaque token representing the quote to initiate payment frames.
543
557
  */
544
558
  signature: string;
559
+ /**
560
+ * A challenge the partner must surface and the customer must complete before the quote can proceed — for example, verifying identity to raise guest-checkout limits. Present only when the quote requires one; omitted otherwise.
561
+ */
562
+ challenge?: Challenge;
545
563
  };
546
564
  type IPv4Address = string;
547
565
  type IPv6Address = string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moonpay/platform-protocol",
3
- "version": "1.13.1",
3
+ "version": "1.14.0",
4
4
  "description": "Shared protocol types for the MoonPay Developer Platform",
5
5
  "type": "module",
6
6
  "exports": {