@fun-xyz/fiat-contract 0.3.0 → 0.4.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-UWR2DRHB.mjs → chunk-VLQLWQPK.mjs} +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/table.d.ts +1 -1
- package/dist/table.js +1 -1
- package/dist/table.mjs +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/table.ts
|
|
2
|
-
var TABLE_VERSION = "0.
|
|
2
|
+
var TABLE_VERSION = "0.4.0";
|
|
3
3
|
var TERMINAL_ORDER_STATUSES = [
|
|
4
4
|
"SETTLED",
|
|
5
5
|
"EXPIRED",
|
|
@@ -409,4 +409,4 @@ export {
|
|
|
409
409
|
tableEntry,
|
|
410
410
|
isTerminal
|
|
411
411
|
};
|
|
412
|
-
//# sourceMappingURL=chunk-
|
|
412
|
+
//# sourceMappingURL=chunk-VLQLWQPK.mjs.map
|
package/dist/index.js
CHANGED
|
@@ -710,7 +710,7 @@ var StepResponseFragmentSchema = $stepResponseFragment;
|
|
|
710
710
|
var EnvelopeSchema = StepResponseSchema;
|
|
711
711
|
|
|
712
712
|
// src/table.ts
|
|
713
|
-
var TABLE_VERSION = "0.
|
|
713
|
+
var TABLE_VERSION = "0.4.0";
|
|
714
714
|
var TERMINAL_ORDER_STATUSES = [
|
|
715
715
|
"SETTLED",
|
|
716
716
|
"EXPIRED",
|
package/dist/index.mjs
CHANGED
package/dist/table.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ import type { FiatEndpoint, FlowState, OrderStatus, TransitionMode } from './typ
|
|
|
22
22
|
* The package version IS the capability handshake's table version (contract §Conformance
|
|
23
23
|
* package → Versioning). Must equal `package.json#version` — asserted in the test suite.
|
|
24
24
|
*/
|
|
25
|
-
export declare const TABLE_VERSION = "0.
|
|
25
|
+
export declare const TABLE_VERSION = "0.4.0";
|
|
26
26
|
/**
|
|
27
27
|
* State identity = kind + phase + the state's named discriminant (FE doc §Decisions).
|
|
28
28
|
* The table keys on kind + phase (+ `reason` for KYC, whose three reasons differ in terminality
|
package/dist/table.js
CHANGED
package/dist/table.mjs
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export type HttpVerb = 'GET' | 'POST';
|
|
|
56
56
|
* cannot express "no slash", so `GET /fiat/orders/${string}` also admits sub-paths. Precision at
|
|
57
57
|
* that level is the table's job (`allowedTransitions` + `endpointMatches`), not the type's.
|
|
58
58
|
*/
|
|
59
|
-
export type FiatEndpoint = 'GET /fiat/payment-methods' | 'POST /fiat/quote' | 'POST /fiat/auth' | 'POST /fiat/session' | 'POST /fiat/session/verify' | 'GET /fiat/kyc' | 'POST /fiat/kyc/form' | 'POST /fiat/kyc/document' | 'POST /fiat/instruments' | 'POST /fiat/orders' | `GET /fiat/orders/${string}` | `GET /fiat/orders/${string}/instructions` | `POST /fiat/orders/${string}/confirm-payment` | `POST /fiat/orders/${string}/reference` | `POST /fiat/orders/${string}/cancel` | `POST /fiat/orders/${string}/surface-result`;
|
|
59
|
+
export type FiatEndpoint = 'GET /fiat/payment-methods' | 'POST /fiat/quote' | 'POST /fiat/auth' | 'POST /fiat/payment-session' | 'POST /fiat/session' | 'POST /fiat/session/verify' | 'GET /fiat/kyc' | 'POST /fiat/kyc/form' | 'POST /fiat/kyc/document' | 'POST /fiat/instruments' | 'POST /fiat/orders' | `GET /fiat/orders/${string}` | `GET /fiat/orders/${string}/instructions` | `POST /fiat/orders/${string}/confirm-payment` | `POST /fiat/orders/${string}/reference` | `POST /fiat/orders/${string}/cancel` | `POST /fiat/orders/${string}/surface-result`;
|
|
60
60
|
/**
|
|
61
61
|
* FiatProvider is metadata: it selects the embedded provider SDK for CLIENT_SURFACE steps and
|
|
62
62
|
* feeds analytics. It never drives sequencing (contract §The envelope).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fun-xyz/fiat-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.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": {
|
|
@@ -78,4 +78,4 @@
|
|
|
78
78
|
]
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
}
|
|
81
|
+
}
|