@atxp/common 0.5.1 → 0.6.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +12 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -27,11 +27,18 @@ type UrlString = `http://${string}` | `https://${string}`;
27
27
  type AuthorizationServerUrl = UrlString;
28
28
  type Currency = 'USDC';
29
29
  type Network = 'solana' | 'base';
30
- type PaymentRequestData = {
31
- amount: BigNumber;
32
- currency: Currency;
30
+ type PaymentRequestDestination = {
33
31
  network: Network;
34
- destination: string;
32
+ currency: Currency;
33
+ address: string;
34
+ amount: BigNumber;
35
+ };
36
+ type PaymentRequestData = {
37
+ destinations?: PaymentRequestDestination[];
38
+ amount?: BigNumber;
39
+ currency?: Currency;
40
+ network?: Network;
41
+ destination?: string;
35
42
  source: string;
36
43
  resource: URL;
37
44
  resourceName: string;
@@ -239,4 +246,4 @@ declare const createReactNativeSafeFetch: (originalFetch: FetchLike) => FetchLik
239
246
  declare let crypto: PlatformCrypto;
240
247
 
241
248
  export { ConsoleLogger, DEFAULT_AUTHORIZATION_SERVER, LogLevel, MemoryOAuthDb, OAuthResourceClient, PAYMENT_REQUIRED_ERROR_CODE, PAYMENT_REQUIRED_PREAMBLE, Servers, assertNever, createReactNativeSafeFetch, crypto, extractJSONFromSSE, generateJWT, getIsReactNative, isBrowser, isEnumValue, isNextJS, isNode, isSSEResponse, isWebEnvironment, parseMcpMessages, parsePaymentRequests, parseSSEMessages, paymentRequiredError };
242
- export type { AccessToken, AuthorizationServerUrl, ClientCredentials, Currency, CustomJWTPayload, FetchLike, Logger, MemoryOAuthDbConfig, Network, OAuthDb, OAuthResourceClientConfig, OAuthResourceDb, PKCEValues, PaymentRequestData, PlatformCrypto, RequirePaymentConfig, SSEMessage, TokenData, UrlString };
249
+ export type { AccessToken, AuthorizationServerUrl, ClientCredentials, Currency, CustomJWTPayload, FetchLike, Logger, MemoryOAuthDbConfig, Network, OAuthDb, OAuthResourceClientConfig, OAuthResourceDb, PKCEValues, PaymentRequestData, PaymentRequestDestination, PlatformCrypto, RequirePaymentConfig, SSEMessage, TokenData, UrlString };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atxp/common",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "ATXP Core - Shared utilities and types for Authorization Token Exchange Protocol",
5
5
  "license": "MIT",
6
6
  "repository": {