@fun-xyz/fiat-contract 0.11.4 → 0.13.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.11.4";
2
+ var version = "0.13.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-WWGICY4Q.mjs.map
517
+ //# sourceMappingURL=chunk-AI66DLZT.mjs.map
package/dist/index.js CHANGED
@@ -876,6 +876,10 @@ var $providerBoundStepResponse = obj({
876
876
  provider: $provider,
877
877
  transitions: import_zod.z.array($transition),
878
878
  routingSessionRef: import_zod.z.string().optional(),
879
+ providerAuthToken: obj({
880
+ clientSecret: import_zod.z.string(),
881
+ expiresAt: import_zod.z.string()
882
+ }).optional(),
879
883
  orderId: import_zod.z.string().optional()
880
884
  });
881
885
  var $blockedStepResponse = obj({
@@ -883,13 +887,17 @@ var $blockedStepResponse = obj({
883
887
  provider: $provider.optional(),
884
888
  transitions: import_zod.z.array($transition),
885
889
  routingSessionRef: import_zod.z.string().optional(),
890
+ providerAuthToken: obj({
891
+ clientSecret: import_zod.z.string(),
892
+ expiresAt: import_zod.z.string()
893
+ }).optional(),
886
894
  orderId: import_zod.z.string().optional()
887
895
  });
888
896
  var $stepResponse = import_zod.z.union([$providerBoundStepResponse, $blockedStepResponse]);
889
897
  var FiatStepResponseSchema = $stepResponse;
890
898
 
891
899
  // package.json
892
- var version = "0.11.4";
900
+ var version = "0.13.0";
893
901
 
894
902
  // src/table.ts
895
903
  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-WWGICY4Q.mjs";
15
+ } from "./chunk-AI66DLZT.mjs";
16
16
 
17
17
  // src/codes.ts
18
18
  var COUNTRY_CURRENCY_LIST = [
@@ -775,6 +775,10 @@ var $providerBoundStepResponse = obj({
775
775
  provider: $provider,
776
776
  transitions: z.array($transition),
777
777
  routingSessionRef: z.string().optional(),
778
+ providerAuthToken: obj({
779
+ clientSecret: z.string(),
780
+ expiresAt: z.string()
781
+ }).optional(),
778
782
  orderId: z.string().optional()
779
783
  });
780
784
  var $blockedStepResponse = obj({
@@ -782,6 +786,10 @@ var $blockedStepResponse = obj({
782
786
  provider: $provider.optional(),
783
787
  transitions: z.array($transition),
784
788
  routingSessionRef: z.string().optional(),
789
+ providerAuthToken: obj({
790
+ clientSecret: z.string(),
791
+ expiresAt: z.string()
792
+ }).optional(),
785
793
  orderId: z.string().optional()
786
794
  });
787
795
  var $stepResponse = z.union([$providerBoundStepResponse, $blockedStepResponse]);
package/dist/table.js CHANGED
@@ -36,7 +36,7 @@ __export(table_exports, {
36
36
  module.exports = __toCommonJS(table_exports);
37
37
 
38
38
  // package.json
39
- var version = "0.11.4";
39
+ var version = "0.13.0";
40
40
 
41
41
  // src/table.ts
42
42
  var TABLE_VERSION = version;
package/dist/table.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  tableEntry,
12
12
  unofferedEndpoints,
13
13
  unreachableStates
14
- } from "./chunk-WWGICY4Q.mjs";
14
+ } from "./chunk-AI66DLZT.mjs";
15
15
  export {
16
16
  DOCUMENTED_ENDPOINTS,
17
17
  STATE_KEYS,
package/dist/types.d.ts CHANGED
@@ -652,6 +652,14 @@ type FiatStepResponseBase = {
652
652
  * the committed provider path independently from the quote binding.
653
653
  */
654
654
  routingSessionRef?: string;
655
+ /**
656
+ * Short-lived provider credential the client redeems for a silent sign-in before it renders the
657
+ * state. Absent means no silent path; the interactive `SESSION_AUTH` flow still applies.
658
+ */
659
+ providerAuthToken?: {
660
+ clientSecret: string;
661
+ expiresAt: string;
662
+ };
655
663
  /** TODO(open-decision): `orderId` placement — see `PAYMENT{INSTRUCT}.orderId` above. */
656
664
  orderId?: string;
657
665
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fun-xyz/fiat-contract",
3
- "version": "0.11.4",
3
+ "version": "0.13.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": {