@unicitylabs/sphere-sdk 0.14.1-dev.1 → 0.14.1
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/connect/index.cjs +20 -5
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.cts +0 -1
- package/dist/connect/index.d.ts +0 -1
- package/dist/connect/index.js +20 -5
- package/dist/connect/index.js.map +1 -1
- package/dist/core/index.cjs +395 -213
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +10 -3
- package/dist/core/index.d.ts +10 -3
- package/dist/core/index.js +395 -213
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/connect/index.cjs +10 -2
- package/dist/impl/browser/connect/index.cjs.map +1 -1
- package/dist/impl/browser/connect/index.d.cts +0 -1
- package/dist/impl/browser/connect/index.d.ts +0 -1
- package/dist/impl/browser/connect/index.js +10 -2
- package/dist/impl/browser/connect/index.js.map +1 -1
- package/dist/impl/nodejs/connect/index.cjs +9 -1
- package/dist/impl/nodejs/connect/index.cjs.map +1 -1
- package/dist/impl/nodejs/connect/index.d.cts +0 -1
- package/dist/impl/nodejs/connect/index.d.ts +0 -1
- package/dist/impl/nodejs/connect/index.js +9 -1
- package/dist/impl/nodejs/connect/index.js.map +1 -1
- package/dist/impl/nodejs/index.d.cts +8 -1
- package/dist/impl/nodejs/index.d.ts +8 -1
- package/dist/impl/shared/wallet-api/index.d.cts +8 -1
- package/dist/impl/shared/wallet-api/index.d.ts +8 -1
- package/dist/impl/wallet-api-v2/index.cjs +38 -5
- package/dist/impl/wallet-api-v2/index.cjs.map +1 -1
- package/dist/impl/wallet-api-v2/index.d.cts +23 -2
- package/dist/impl/wallet-api-v2/index.d.ts +23 -2
- package/dist/impl/wallet-api-v2/index.js +38 -5
- package/dist/impl/wallet-api-v2/index.js.map +1 -1
- package/dist/index.cjs +395 -213
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +395 -213
- package/dist/index.js.map +1 -1
- package/dist/modules/payments-v2/index.cjs +340 -199
- package/dist/modules/payments-v2/index.cjs.map +1 -1
- package/dist/modules/payments-v2/index.d.cts +68 -19
- package/dist/modules/payments-v2/index.d.ts +68 -19
- package/dist/modules/payments-v2/index.js +339 -199
- package/dist/modules/payments-v2/index.js.map +1 -1
- package/package.json +1 -1
package/dist/core/index.d.cts
CHANGED
|
@@ -659,8 +659,8 @@ interface SphereEventMap {
|
|
|
659
659
|
};
|
|
660
660
|
/** The wallet-api inventory mirror changed — re-read tokens()/assets(). */
|
|
661
661
|
'inventory:updated': Record<string, never>;
|
|
662
|
-
/** History changed —
|
|
663
|
-
'history:updated':
|
|
662
|
+
/** History changed — carries the just-recorded client-shaped entry (same toEntry mapping history() serves). */
|
|
663
|
+
'history:updated': HistoryEntry;
|
|
664
664
|
'payment_request:incoming': PaymentRequestView;
|
|
665
665
|
'payment_request:updated': {
|
|
666
666
|
id: string;
|
|
@@ -2632,6 +2632,14 @@ interface FacadeSession {
|
|
|
2632
2632
|
start(): Promise<void>;
|
|
2633
2633
|
stop(): Promise<void>;
|
|
2634
2634
|
subscribeStream(stream: 'inventory' | 'mailbox' | 'payment_requests', handler: () => void): () => void;
|
|
2635
|
+
/** §5.1: the latched server syncEpoch ('' before first server contact). */
|
|
2636
|
+
currentEpoch(): string;
|
|
2637
|
+
/**
|
|
2638
|
+
* §5.1 restore hook — REQUIRED so an unwired restore protocol is a COMPILE
|
|
2639
|
+
* ERROR: handlers run and are AWAITED on a syncEpoch change BEFORE any
|
|
2640
|
+
* stream nudge resumes. The facade registers handleEpochChange here.
|
|
2641
|
+
*/
|
|
2642
|
+
subscribeEpochChange(handler: (epoch: string) => Promise<void>): () => void;
|
|
2635
2643
|
/**
|
|
2636
2644
|
* Optional connection-status feed (same wiring pattern as the streams; the
|
|
2637
2645
|
* emission point is the session's existing `connection:status` transition).
|
|
@@ -2920,7 +2928,6 @@ interface PaymentsV2TransportArgs {
|
|
|
2920
2928
|
/** Per-(network, address) scoped KV — refresh token, cursors, seen-set live here. */
|
|
2921
2929
|
kv: ScopedKV;
|
|
2922
2930
|
emitStatus: (status: ConnectionStatus) => void;
|
|
2923
|
-
onEpochChange: (epoch: string) => Promise<void>;
|
|
2924
2931
|
}
|
|
2925
2932
|
/**
|
|
2926
2933
|
* The `Sphere.init({ walletApi })` transport config — built by
|
package/dist/core/index.d.ts
CHANGED
|
@@ -659,8 +659,8 @@ interface SphereEventMap {
|
|
|
659
659
|
};
|
|
660
660
|
/** The wallet-api inventory mirror changed — re-read tokens()/assets(). */
|
|
661
661
|
'inventory:updated': Record<string, never>;
|
|
662
|
-
/** History changed —
|
|
663
|
-
'history:updated':
|
|
662
|
+
/** History changed — carries the just-recorded client-shaped entry (same toEntry mapping history() serves). */
|
|
663
|
+
'history:updated': HistoryEntry;
|
|
664
664
|
'payment_request:incoming': PaymentRequestView;
|
|
665
665
|
'payment_request:updated': {
|
|
666
666
|
id: string;
|
|
@@ -2632,6 +2632,14 @@ interface FacadeSession {
|
|
|
2632
2632
|
start(): Promise<void>;
|
|
2633
2633
|
stop(): Promise<void>;
|
|
2634
2634
|
subscribeStream(stream: 'inventory' | 'mailbox' | 'payment_requests', handler: () => void): () => void;
|
|
2635
|
+
/** §5.1: the latched server syncEpoch ('' before first server contact). */
|
|
2636
|
+
currentEpoch(): string;
|
|
2637
|
+
/**
|
|
2638
|
+
* §5.1 restore hook — REQUIRED so an unwired restore protocol is a COMPILE
|
|
2639
|
+
* ERROR: handlers run and are AWAITED on a syncEpoch change BEFORE any
|
|
2640
|
+
* stream nudge resumes. The facade registers handleEpochChange here.
|
|
2641
|
+
*/
|
|
2642
|
+
subscribeEpochChange(handler: (epoch: string) => Promise<void>): () => void;
|
|
2635
2643
|
/**
|
|
2636
2644
|
* Optional connection-status feed (same wiring pattern as the streams; the
|
|
2637
2645
|
* emission point is the session's existing `connection:status` transition).
|
|
@@ -2920,7 +2928,6 @@ interface PaymentsV2TransportArgs {
|
|
|
2920
2928
|
/** Per-(network, address) scoped KV — refresh token, cursors, seen-set live here. */
|
|
2921
2929
|
kv: ScopedKV;
|
|
2922
2930
|
emitStatus: (status: ConnectionStatus) => void;
|
|
2923
|
-
onEpochChange: (epoch: string) => Promise<void>;
|
|
2924
2931
|
}
|
|
2925
2932
|
/**
|
|
2926
2933
|
* The `Sphere.init({ walletApi })` transport config — built by
|