@fun-xyz/fiat-contract 0.11.1 → 0.11.2

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.1";
2
+ var version = "0.11.2";
3
3
 
4
4
  // src/table.ts
5
5
  var TABLE_VERSION = version;
@@ -102,7 +102,13 @@ var TRANSITION_TABLE = {
102
102
  docStatus: "SPECIFIED",
103
103
  allowedTransitions: [
104
104
  { id: "start", mode: "SUBMIT", endpoint: "POST /fiat/session" },
105
- { id: "verify", mode: "SUBMIT", endpoint: "POST /fiat/session/verify" }
105
+ { id: "verify", mode: "SUBMIT", endpoint: "POST /fiat/session/verify" },
106
+ {
107
+ id: "report_auth_result",
108
+ mode: "CLIENT_SURFACE",
109
+ endpoint: "POST /fiat/session/verify",
110
+ note: "Reports a provider-owned authentication surface result; the backend alone reassesses and selects the next state."
111
+ }
106
112
  ],
107
113
  mayReturn: [
108
114
  "SESSION_AUTH",
@@ -116,7 +122,8 @@ var TRANSITION_TABLE = {
116
122
  notes: [
117
123
  "A bad code re-enters this same state with error {category: USER_ERROR, code: BAD_CODE} \u2014 banner, not a screen change.",
118
124
  "No resend affordance is specified in either doc (known gap, FE doc Screen 2).",
119
- "A provider-owned surface may declare client-executed delivery from allowlisted CURRENT_SESSION_INPUTS only."
125
+ "A provider-owned surface may declare client-executed delivery from allowlisted CURRENT_SESSION_INPUTS only.",
126
+ "A provider-owned authentication surface reports through CLIENT_SURFACE; it is not a user-entered OTP submission."
120
127
  ]
121
128
  },
122
129
  "KYC/CAPTURE": {
@@ -507,4 +514,4 @@ export {
507
514
  tableEntry,
508
515
  isTerminal
509
516
  };
510
- //# sourceMappingURL=chunk-TXI4KLBL.mjs.map
517
+ //# sourceMappingURL=chunk-KU4EWXRI.mjs.map
package/dist/index.js CHANGED
@@ -886,7 +886,7 @@ var $stepResponse = import_zod.z.union([$providerBoundStepResponse, $blockedStep
886
886
  var FiatStepResponseSchema = $stepResponse;
887
887
 
888
888
  // package.json
889
- var version = "0.11.1";
889
+ var version = "0.11.2";
890
890
 
891
891
  // src/table.ts
892
892
  var TABLE_VERSION = version;
@@ -989,7 +989,13 @@ var TRANSITION_TABLE = {
989
989
  docStatus: "SPECIFIED",
990
990
  allowedTransitions: [
991
991
  { id: "start", mode: "SUBMIT", endpoint: "POST /fiat/session" },
992
- { id: "verify", mode: "SUBMIT", endpoint: "POST /fiat/session/verify" }
992
+ { id: "verify", mode: "SUBMIT", endpoint: "POST /fiat/session/verify" },
993
+ {
994
+ id: "report_auth_result",
995
+ mode: "CLIENT_SURFACE",
996
+ endpoint: "POST /fiat/session/verify",
997
+ note: "Reports a provider-owned authentication surface result; the backend alone reassesses and selects the next state."
998
+ }
993
999
  ],
994
1000
  mayReturn: [
995
1001
  "SESSION_AUTH",
@@ -1003,7 +1009,8 @@ var TRANSITION_TABLE = {
1003
1009
  notes: [
1004
1010
  "A bad code re-enters this same state with error {category: USER_ERROR, code: BAD_CODE} \u2014 banner, not a screen change.",
1005
1011
  "No resend affordance is specified in either doc (known gap, FE doc Screen 2).",
1006
- "A provider-owned surface may declare client-executed delivery from allowlisted CURRENT_SESSION_INPUTS only."
1012
+ "A provider-owned surface may declare client-executed delivery from allowlisted CURRENT_SESSION_INPUTS only.",
1013
+ "A provider-owned authentication surface reports through CLIENT_SURFACE; it is not a user-entered OTP submission."
1007
1014
  ]
1008
1015
  },
1009
1016
  "KYC/CAPTURE": {
package/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  tableEntry,
13
13
  unofferedEndpoints,
14
14
  unreachableStates
15
- } from "./chunk-TXI4KLBL.mjs";
15
+ } from "./chunk-KU4EWXRI.mjs";
16
16
 
17
17
  // src/codes.ts
18
18
  var COUNTRY_CURRENCY_LIST = [
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.1";
39
+ var version = "0.11.2";
40
40
 
41
41
  // src/table.ts
42
42
  var TABLE_VERSION = version;
@@ -139,7 +139,13 @@ var TRANSITION_TABLE = {
139
139
  docStatus: "SPECIFIED",
140
140
  allowedTransitions: [
141
141
  { id: "start", mode: "SUBMIT", endpoint: "POST /fiat/session" },
142
- { id: "verify", mode: "SUBMIT", endpoint: "POST /fiat/session/verify" }
142
+ { id: "verify", mode: "SUBMIT", endpoint: "POST /fiat/session/verify" },
143
+ {
144
+ id: "report_auth_result",
145
+ mode: "CLIENT_SURFACE",
146
+ endpoint: "POST /fiat/session/verify",
147
+ note: "Reports a provider-owned authentication surface result; the backend alone reassesses and selects the next state."
148
+ }
143
149
  ],
144
150
  mayReturn: [
145
151
  "SESSION_AUTH",
@@ -153,7 +159,8 @@ var TRANSITION_TABLE = {
153
159
  notes: [
154
160
  "A bad code re-enters this same state with error {category: USER_ERROR, code: BAD_CODE} \u2014 banner, not a screen change.",
155
161
  "No resend affordance is specified in either doc (known gap, FE doc Screen 2).",
156
- "A provider-owned surface may declare client-executed delivery from allowlisted CURRENT_SESSION_INPUTS only."
162
+ "A provider-owned surface may declare client-executed delivery from allowlisted CURRENT_SESSION_INPUTS only.",
163
+ "A provider-owned authentication surface reports through CLIENT_SURFACE; it is not a user-entered OTP submission."
157
164
  ]
158
165
  },
159
166
  "KYC/CAPTURE": {
package/dist/table.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  tableEntry,
12
12
  unofferedEndpoints,
13
13
  unreachableStates
14
- } from "./chunk-TXI4KLBL.mjs";
14
+ } from "./chunk-KU4EWXRI.mjs";
15
15
  export {
16
16
  DOCUMENTED_ENDPOINTS,
17
17
  STATE_KEYS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fun-xyz/fiat-contract",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
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": {