@pafi-dev/issuer 0.4.0 → 0.5.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/index.d.cts CHANGED
@@ -1543,12 +1543,16 @@ interface IssuerServiceConfig {
1543
1543
  };
1544
1544
  }
1545
1545
  interface IssuerService {
1546
- authService: AuthService;
1547
- sessionStore: ISessionStore;
1546
+ /** AuthService — login, logout, nonce management. */
1547
+ auth: AuthService;
1548
+ /** Session store — nonce + JWT session persistence. */
1549
+ session: ISessionStore;
1548
1550
  ledger: IPointLedger;
1549
1551
  policy: IPolicyEngine;
1550
- relayService: RelayService;
1551
- feeManager: FeeManager | undefined;
1552
+ /** RelayService — prepareMint / prepareBurn UserOp builders. */
1553
+ relay: RelayService;
1554
+ /** FeeManager — gas fee estimation. Undefined if not configured. */
1555
+ fee: FeeManager | undefined;
1552
1556
  /** All indexers keyed by PointToken address. */
1553
1557
  indexers: Map<Address, PointIndexer>;
1554
1558
  /**
@@ -1556,7 +1560,8 @@ interface IssuerService {
1556
1560
  * @deprecated use `indexers.get(tokenAddress)` for multi-token.
1557
1561
  */
1558
1562
  indexer: PointIndexer;
1559
- handlers: IssuerApiHandlers;
1563
+ /** Framework-agnostic HTTP handlers — wire into Express / Fastify / Hono. */
1564
+ api: IssuerApiHandlers;
1560
1565
  }
1561
1566
  /**
1562
1567
  * Wire a fully-functional issuer service from a single config object.
@@ -1573,6 +1578,6 @@ interface IssuerService {
1573
1578
  declare function createIssuerService(config: IssuerServiceConfig): IssuerService;
1574
1579
 
1575
1580
  /** SDK package version — bumped on every release */
1576
- declare const PAFI_ISSUER_SDK_VERSION = "0.1.0";
1581
+ declare const PAFI_ISSUER_SDK_VERSION = "0.4.0";
1577
1582
 
1578
1583
  export { type ApiBuildConsentTypedDataRequest, type ApiBuildConsentTypedDataResponse, type ApiClaimAndSwapRequest, type ApiClaimAndSwapResponse, type ApiClaimRequest, type ApiClaimResponse, type ApiConfigResponse, type ApiGasFeeResponse, type ApiLoginRequest, type ApiLoginResponse, type ApiNonceResponse, type ApiPoolsRequest, type ApiPoolsResponse, type ApiUserRequest, type ApiUserResponse, type AuthContext, AuthError, type AuthErrorCode, AuthService, type AuthServiceConfig, BalanceAggregator, type BalanceAggregatorConfig, type BurnEvent, BurnIndexer, type BurnIndexerConfig, type CombinedBalance, DefaultPolicyEngine, type DefaultPolicyEngineOptions, FeeManager, type FeeManagerConfig, type IIndexerCursorStore, type IPointLedger, type IPolicyEngine, type ISessionStore, InMemoryCursorStore, IssuerApiHandlers, type IssuerApiHandlersConfig, type IssuerService, type IssuerServiceConfig, type LockedMintRequest, type LoginResult, MemorySessionStore, type MemorySessionStoreOptions, type MintEvent, type MintingStatus, NonceManager, PAFI_ISSUER_SDK_VERSION, PTRedeemError, PTRedeemHandler, type PTRedeemHandlerConfig, type PTRedeemRequest, type PTRedeemResponse, PafiBackendClient, type PafiBackendConfig, PafiBackendError, type PafiBackendErrorCode, PointIndexer, type PointIndexerConfig, type PolicyDecision, type PolicyEvalRequest, type PoolsProvider, type PrepareBurnDirectParams, type PrepareBurnParams, type PrepareBurnWithSigParams, type PrepareMintParams, RelayError, type RelayErrorCode, RelayService, type RetryConfig, type Session, type SponsorshipRequest, type SponsorshipResponse, type SponsorshipTarget, type SponsorshipUserOp, type SubgraphNativeUsdtQuoterConfig, type SubgraphPoolsProviderConfig, TopUpRedemptionError, TopUpRedemptionHandler, type TopUpRedemptionHandlerConfig, type TopUpRedemptionRequest, type TopUpRedemptionResponse, authenticateRequest, createIssuerService, createSubgraphNativeUsdtQuoter, createSubgraphPoolsProvider };
package/dist/index.d.ts CHANGED
@@ -1543,12 +1543,16 @@ interface IssuerServiceConfig {
1543
1543
  };
1544
1544
  }
1545
1545
  interface IssuerService {
1546
- authService: AuthService;
1547
- sessionStore: ISessionStore;
1546
+ /** AuthService — login, logout, nonce management. */
1547
+ auth: AuthService;
1548
+ /** Session store — nonce + JWT session persistence. */
1549
+ session: ISessionStore;
1548
1550
  ledger: IPointLedger;
1549
1551
  policy: IPolicyEngine;
1550
- relayService: RelayService;
1551
- feeManager: FeeManager | undefined;
1552
+ /** RelayService — prepareMint / prepareBurn UserOp builders. */
1553
+ relay: RelayService;
1554
+ /** FeeManager — gas fee estimation. Undefined if not configured. */
1555
+ fee: FeeManager | undefined;
1552
1556
  /** All indexers keyed by PointToken address. */
1553
1557
  indexers: Map<Address, PointIndexer>;
1554
1558
  /**
@@ -1556,7 +1560,8 @@ interface IssuerService {
1556
1560
  * @deprecated use `indexers.get(tokenAddress)` for multi-token.
1557
1561
  */
1558
1562
  indexer: PointIndexer;
1559
- handlers: IssuerApiHandlers;
1563
+ /** Framework-agnostic HTTP handlers — wire into Express / Fastify / Hono. */
1564
+ api: IssuerApiHandlers;
1560
1565
  }
1561
1566
  /**
1562
1567
  * Wire a fully-functional issuer service from a single config object.
@@ -1573,6 +1578,6 @@ interface IssuerService {
1573
1578
  declare function createIssuerService(config: IssuerServiceConfig): IssuerService;
1574
1579
 
1575
1580
  /** SDK package version — bumped on every release */
1576
- declare const PAFI_ISSUER_SDK_VERSION = "0.1.0";
1581
+ declare const PAFI_ISSUER_SDK_VERSION = "0.4.0";
1577
1582
 
1578
1583
  export { type ApiBuildConsentTypedDataRequest, type ApiBuildConsentTypedDataResponse, type ApiClaimAndSwapRequest, type ApiClaimAndSwapResponse, type ApiClaimRequest, type ApiClaimResponse, type ApiConfigResponse, type ApiGasFeeResponse, type ApiLoginRequest, type ApiLoginResponse, type ApiNonceResponse, type ApiPoolsRequest, type ApiPoolsResponse, type ApiUserRequest, type ApiUserResponse, type AuthContext, AuthError, type AuthErrorCode, AuthService, type AuthServiceConfig, BalanceAggregator, type BalanceAggregatorConfig, type BurnEvent, BurnIndexer, type BurnIndexerConfig, type CombinedBalance, DefaultPolicyEngine, type DefaultPolicyEngineOptions, FeeManager, type FeeManagerConfig, type IIndexerCursorStore, type IPointLedger, type IPolicyEngine, type ISessionStore, InMemoryCursorStore, IssuerApiHandlers, type IssuerApiHandlersConfig, type IssuerService, type IssuerServiceConfig, type LockedMintRequest, type LoginResult, MemorySessionStore, type MemorySessionStoreOptions, type MintEvent, type MintingStatus, NonceManager, PAFI_ISSUER_SDK_VERSION, PTRedeemError, PTRedeemHandler, type PTRedeemHandlerConfig, type PTRedeemRequest, type PTRedeemResponse, PafiBackendClient, type PafiBackendConfig, PafiBackendError, type PafiBackendErrorCode, PointIndexer, type PointIndexerConfig, type PolicyDecision, type PolicyEvalRequest, type PoolsProvider, type PrepareBurnDirectParams, type PrepareBurnParams, type PrepareBurnWithSigParams, type PrepareMintParams, RelayError, type RelayErrorCode, RelayService, type RetryConfig, type Session, type SponsorshipRequest, type SponsorshipResponse, type SponsorshipTarget, type SponsorshipUserOp, type SubgraphNativeUsdtQuoterConfig, type SubgraphPoolsProviderConfig, TopUpRedemptionError, TopUpRedemptionHandler, type TopUpRedemptionHandlerConfig, type TopUpRedemptionRequest, type TopUpRedemptionResponse, authenticateRequest, createIssuerService, createSubgraphNativeUsdtQuoter, createSubgraphPoolsProvider };
package/dist/index.js CHANGED
@@ -2027,20 +2027,20 @@ function createIssuerService(config) {
2027
2027
  }
2028
2028
  }
2029
2029
  return {
2030
- authService,
2031
- sessionStore,
2030
+ auth: authService,
2031
+ session: sessionStore,
2032
2032
  ledger,
2033
2033
  policy,
2034
- relayService,
2035
- feeManager,
2034
+ relay: relayService,
2035
+ fee: feeManager,
2036
2036
  indexers,
2037
2037
  indexer: firstIndexer,
2038
- handlers
2038
+ api: handlers
2039
2039
  };
2040
2040
  }
2041
2041
 
2042
2042
  // src/index.ts
2043
- var PAFI_ISSUER_SDK_VERSION = "0.1.0";
2043
+ var PAFI_ISSUER_SDK_VERSION = "0.4.0";
2044
2044
  export {
2045
2045
  AuthError,
2046
2046
  AuthService,