@fun-xyz/fiat-contract 0.14.0 → 0.15.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/{chunk-BQELSEYH.mjs → chunk-CXYGWKAG.mjs} +2 -2
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/dist/table.js +1 -1
- package/dist/table.mjs +1 -1
- package/dist/types.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// package.json
|
|
2
|
-
var version = "0.
|
|
2
|
+
var version = "0.15.0";
|
|
3
3
|
|
|
4
4
|
// src/table.ts
|
|
5
5
|
var TABLE_VERSION = version;
|
|
@@ -514,4 +514,4 @@ export {
|
|
|
514
514
|
tableEntry,
|
|
515
515
|
isTerminal
|
|
516
516
|
};
|
|
517
|
-
//# sourceMappingURL=chunk-
|
|
517
|
+
//# sourceMappingURL=chunk-CXYGWKAG.mjs.map
|
package/dist/index.js
CHANGED
|
@@ -941,7 +941,8 @@ var $providerBoundStepResponse = obj({
|
|
|
941
941
|
clientSecret: import_zod.z.string(),
|
|
942
942
|
expiresAt: import_zod.z.string()
|
|
943
943
|
}).optional(),
|
|
944
|
-
orderId: import_zod.z.string().optional()
|
|
944
|
+
orderId: import_zod.z.string().optional(),
|
|
945
|
+
refreshLimits: import_zod.z.literal(true).optional()
|
|
945
946
|
});
|
|
946
947
|
var $blockedStepResponse = obj({
|
|
947
948
|
state: $blockedState,
|
|
@@ -952,13 +953,14 @@ var $blockedStepResponse = obj({
|
|
|
952
953
|
clientSecret: import_zod.z.string(),
|
|
953
954
|
expiresAt: import_zod.z.string()
|
|
954
955
|
}).optional(),
|
|
955
|
-
orderId: import_zod.z.string().optional()
|
|
956
|
+
orderId: import_zod.z.string().optional(),
|
|
957
|
+
refreshLimits: import_zod.z.literal(true).optional()
|
|
956
958
|
});
|
|
957
959
|
var $stepResponse = import_zod.z.union([$providerBoundStepResponse, $blockedStepResponse]);
|
|
958
960
|
var FiatStepResponseSchema = $stepResponse;
|
|
959
961
|
|
|
960
962
|
// package.json
|
|
961
|
-
var version = "0.
|
|
963
|
+
var version = "0.15.0";
|
|
962
964
|
|
|
963
965
|
// src/table.ts
|
|
964
966
|
var TABLE_VERSION = version;
|
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
tableEntry,
|
|
13
13
|
unofferedEndpoints,
|
|
14
14
|
unreachableStates
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CXYGWKAG.mjs";
|
|
16
16
|
|
|
17
17
|
// src/codes.ts
|
|
18
18
|
var US_STATE_CODES = [
|
|
@@ -838,7 +838,8 @@ var $providerBoundStepResponse = obj({
|
|
|
838
838
|
clientSecret: z.string(),
|
|
839
839
|
expiresAt: z.string()
|
|
840
840
|
}).optional(),
|
|
841
|
-
orderId: z.string().optional()
|
|
841
|
+
orderId: z.string().optional(),
|
|
842
|
+
refreshLimits: z.literal(true).optional()
|
|
842
843
|
});
|
|
843
844
|
var $blockedStepResponse = obj({
|
|
844
845
|
state: $blockedState,
|
|
@@ -849,7 +850,8 @@ var $blockedStepResponse = obj({
|
|
|
849
850
|
clientSecret: z.string(),
|
|
850
851
|
expiresAt: z.string()
|
|
851
852
|
}).optional(),
|
|
852
|
-
orderId: z.string().optional()
|
|
853
|
+
orderId: z.string().optional(),
|
|
854
|
+
refreshLimits: z.literal(true).optional()
|
|
853
855
|
});
|
|
854
856
|
var $stepResponse = z.union([$providerBoundStepResponse, $blockedStepResponse]);
|
|
855
857
|
var FiatStepResponseSchema = $stepResponse;
|
package/dist/table.js
CHANGED
package/dist/table.mjs
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -662,6 +662,15 @@ type FiatStepResponseBase = {
|
|
|
662
662
|
};
|
|
663
663
|
/** TODO(open-decision): `orderId` placement — see `PAYMENT{INSTRUCT}.orderId` above. */
|
|
664
664
|
orderId?: string;
|
|
665
|
+
/**
|
|
666
|
+
* Best-effort: what this response did may have changed what the buyer can spend, so a cached
|
|
667
|
+
* discovery ceiling is no longer trusted. Absent is not a promise that nothing changed, only
|
|
668
|
+
* that this response is not reporting one, so a client must still tolerate a stale ceiling.
|
|
669
|
+
*
|
|
670
|
+
* Never `false`. A widened or dropped ceiling costs one discovery call; one left too low
|
|
671
|
+
* refuses a purchase the backend would have served, so the uncertain direction is to send it.
|
|
672
|
+
*/
|
|
673
|
+
refreshLimits?: true;
|
|
665
674
|
};
|
|
666
675
|
/**
|
|
667
676
|
* Provider is absent only when routing ended before a provider could be selected. A BLOCKED response
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fun-xyz/fiat-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.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": {
|