@opendatalabs/vana-sdk 3.13.4 → 3.14.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 (116) hide show
  1. package/dist/account/personal-server-lite-owner-binding.d.ts +1 -1
  2. package/dist/account/personal-server-registration.d.ts +1 -1
  3. package/dist/auth/errors.d.ts +1 -1
  4. package/dist/auth/oauth-client.d.ts +1 -1
  5. package/dist/browser.d.ts +1 -1
  6. package/dist/chains/index.d.ts +2 -2
  7. package/dist/chains.browser.d.ts +2 -2
  8. package/dist/chains.d.ts +2 -2
  9. package/dist/chains.node.d.ts +2 -2
  10. package/dist/config/contracts.config.cjs +1 -1
  11. package/dist/config/contracts.config.cjs.map +1 -1
  12. package/dist/config/contracts.config.js +1 -1
  13. package/dist/config/contracts.config.js.map +1 -1
  14. package/dist/contracts/contractController.d.ts +4 -4
  15. package/dist/core/client.d.ts +1 -1
  16. package/dist/crypto/ecies/base.d.ts +1 -1
  17. package/dist/crypto/ecies/browser.d.ts +1 -1
  18. package/dist/crypto/ecies/index.d.ts +2 -2
  19. package/dist/crypto/ecies/node.d.ts +1 -1
  20. package/dist/crypto/services/WalletKeyEncryptionService.d.ts +1 -1
  21. package/dist/direct/access-request-client.cjs +3 -1
  22. package/dist/direct/access-request-client.cjs.map +1 -1
  23. package/dist/direct/access-request-client.d.ts +2 -2
  24. package/dist/direct/access-request-client.js +3 -1
  25. package/dist/direct/access-request-client.js.map +1 -1
  26. package/dist/direct/connect-flow.d.ts +1 -1
  27. package/dist/direct/controller.cjs +72 -32
  28. package/dist/direct/controller.cjs.map +1 -1
  29. package/dist/direct/controller.d.ts +48 -10
  30. package/dist/direct/controller.js +77 -33
  31. package/dist/direct/controller.js.map +1 -1
  32. package/dist/direct/endpoints.d.ts +1 -1
  33. package/dist/direct/errors.cjs +11 -2
  34. package/dist/direct/errors.cjs.map +1 -1
  35. package/dist/direct/errors.d.ts +14 -1
  36. package/dist/direct/errors.js +9 -1
  37. package/dist/direct/errors.js.map +1 -1
  38. package/dist/direct/escrow-payment.cjs +147 -12
  39. package/dist/direct/escrow-payment.cjs.map +1 -1
  40. package/dist/direct/escrow-payment.d.ts +65 -12
  41. package/dist/direct/escrow-payment.js +143 -12
  42. package/dist/direct/escrow-payment.js.map +1 -1
  43. package/dist/direct/personal-server-read.cjs +164 -23
  44. package/dist/direct/personal-server-read.cjs.map +1 -1
  45. package/dist/direct/personal-server-read.d.ts +28 -18
  46. package/dist/direct/personal-server-read.js +167 -25
  47. package/dist/direct/personal-server-read.js.map +1 -1
  48. package/dist/direct/types.cjs.map +1 -1
  49. package/dist/direct/types.d.ts +81 -21
  50. package/dist/direct/types.js.map +1 -1
  51. package/dist/direct/use-direct-vana-connect.d.ts +1 -1
  52. package/dist/generated/abi/index.d.ts +25 -25
  53. package/dist/generated/addresses.cjs +6 -6
  54. package/dist/generated/addresses.cjs.map +1 -1
  55. package/dist/generated/addresses.d.ts +6 -6
  56. package/dist/generated/addresses.js +6 -6
  57. package/dist/generated/addresses.js.map +1 -1
  58. package/dist/index.browser.d.ts +44 -44
  59. package/dist/index.browser.js +6 -6
  60. package/dist/index.browser.js.map +2 -2
  61. package/dist/index.node.cjs +498 -6
  62. package/dist/index.node.cjs.map +4 -4
  63. package/dist/index.node.d.ts +48 -45
  64. package/dist/index.node.js +486 -6
  65. package/dist/index.node.js.map +4 -4
  66. package/dist/node.d.ts +1 -1
  67. package/dist/platform/browser-only.d.ts +3 -3
  68. package/dist/platform/browser-safe.d.ts +3 -3
  69. package/dist/platform/browser.d.ts +1 -1
  70. package/dist/platform/index.d.ts +5 -5
  71. package/dist/platform/node.d.ts +1 -1
  72. package/dist/platform/ports/openpgp-port.d.ts +1 -1
  73. package/dist/platform/utils.d.ts +1 -1
  74. package/dist/platform.browser.d.ts +4 -4
  75. package/dist/platform.d.ts +5 -5
  76. package/dist/platform.node.d.ts +5 -5
  77. package/dist/protocol/data-point-status.d.ts +1 -1
  78. package/dist/protocol/eip712.cjs.map +1 -1
  79. package/dist/protocol/eip712.js.map +1 -1
  80. package/dist/protocol/escrow-deposit.d.ts +1 -1
  81. package/dist/protocol/escrow.cjs.map +1 -1
  82. package/dist/protocol/escrow.d.ts +11 -4
  83. package/dist/protocol/escrow.js.map +1 -1
  84. package/dist/protocol/fee-registry.d.ts +1 -1
  85. package/dist/protocol/gateway.cjs.map +1 -1
  86. package/dist/protocol/gateway.js.map +1 -1
  87. package/dist/protocol/grants.d.ts +1 -1
  88. package/dist/protocol/personal-server-data.d.ts +2 -2
  89. package/dist/protocol/personal-server-registration.d.ts +2 -2
  90. package/dist/react.d.ts +3 -3
  91. package/dist/server.cjs +12 -0
  92. package/dist/server.cjs.map +1 -1
  93. package/dist/server.d.ts +8 -8
  94. package/dist/server.js +12 -0
  95. package/dist/server.js.map +1 -1
  96. package/dist/session-relay/client.d.ts +1 -1
  97. package/dist/session-relay/endpoints.d.ts +1 -1
  98. package/dist/session-relay/errors.d.ts +1 -1
  99. package/dist/session-relay/index.d.ts +5 -5
  100. package/dist/session-relay/signing.d.ts +1 -1
  101. package/dist/session-relay/types.d.ts +1 -1
  102. package/dist/session-relay.d.ts +5 -5
  103. package/dist/storage/default.d.ts +2 -2
  104. package/dist/storage/index.d.ts +16 -16
  105. package/dist/storage/manager.d.ts +1 -1
  106. package/dist/storage/providers/callback-storage.d.ts +2 -2
  107. package/dist/storage/providers/dropbox.d.ts +1 -1
  108. package/dist/storage/providers/google-drive.d.ts +1 -1
  109. package/dist/storage/providers/ipfs.d.ts +1 -1
  110. package/dist/storage/providers/pinata.d.ts +1 -1
  111. package/dist/storage/providers/r2.d.ts +1 -1
  112. package/dist/storage/providers/vana-storage.d.ts +3 -3
  113. package/dist/types/config.d.ts +1 -1
  114. package/dist/types/index.d.ts +6 -6
  115. package/dist/types.d.ts +1 -1
  116. package/package.json +13 -1
@@ -6,48 +6,51 @@
6
6
  * Exposes the platform adapter, ECIES crypto, storage providers, smart-contract
7
7
  * helpers, ABIs, addresses, chain configurations, and shared types.
8
8
  */
9
- export type * from "./types";
10
- export * from "./errors";
11
- export * from "./contracts/contractController";
12
- export { getAbi } from "./generated/abi";
13
- export type { VanaContract, VanaContract as VanaContractAbi, } from "./generated/abi";
14
- export { getContractAddress, CONTRACTS } from "./generated/addresses";
15
- export type { VanaContractAddress } from "./generated/addresses";
16
- export { vanaMainnet, mokshaTestnet, moksha, type VanaChainConfig, getChainConfig, getAllChains, } from "./chains";
17
- export * from "./chains";
18
- export { chains } from "./config/chains";
19
- export { type ServiceEndpoints, mainnetServices, mokshaServices, getServiceEndpoints, } from "./config/default-services";
20
- export * from "./storage/index";
21
- export { createVanaStorageProvider } from "./storage/default";
22
- export type { VanaStorageProviderOptions } from "./storage/default";
23
- export { NodePlatformAdapter } from "./platform/node";
24
- export { BrowserPlatformAdapter } from "./platform/browser";
25
- export { NodeECIESUint8Provider as NodeECIESProvider } from "./crypto/ecies/node";
26
- export type { VanaPlatformAdapter } from "./platform/interface";
27
- export { ECIESError, isECIESEncrypted, serializeECIES, deserializeECIES, } from "./crypto/ecies";
28
- export type { ECIESProvider, ECIESEncrypted, ECIESOptions, } from "./crypto/ecies";
29
- export { detectPlatform, createPlatformAdapter, createPlatformAdapterFor, isPlatformSupported, getPlatformCapabilities, } from "./platform/utils";
30
- export { createNodePlatformAdapter, createBrowserPlatformAdapter, createPlatformAdapterSafe, } from "./platform/browser-safe";
31
- export { deriveMasterKey, deriveScopeKey, recoverServerOwner, MASTER_KEY_MESSAGE, } from "./crypto/keys/derive";
32
- export { encryptWithPassword, decryptWithPassword, } from "./crypto/envelope/openpgp";
33
- export { parseWeb3SignedHeader, verifyWeb3Signed, type Web3SignedPayload, type VerifiedAuth, } from "./auth/web3-signed";
34
- export { buildWeb3SignedHeader, computeBodyHash, type Web3SignedSignFn, } from "./auth/web3-signed-builder";
35
- export { MissingAuthError, InvalidSignatureError, ExpiredTokenError, } from "./auth/errors";
36
- export { generatePkceVerifier, computePkceChallenge, verifyPkceChallenge, assertValidPkceVerifier, PKCE_VERIFIER_PATTERN, PKCE_CHALLENGE_PATTERN, } from "./auth/pkce";
37
- export { InMemoryTokenStore, type TokenStore, type TokenRecord, } from "./auth/token-store";
38
- export { OAuthClient, type OAuthClientConfig, type AuthorizationUrlResult, } from "./auth/oauth-client";
39
- export { NATIVE_VANA_ASSET, dataRegistryDomain, grantRegistrationDomain, grantRevocationDomain, serverRegistrationDomain, builderRegistrationDomain, escrowPaymentDomain, GRANT_REGISTRATION_TYPES, GRANT_REVOCATION_TYPES, SERVER_REGISTRATION_TYPES, BUILDER_REGISTRATION_TYPES, ADD_DATA_TYPES, RECORD_DATA_ACCESS_TYPES, type DataPortabilityContracts, type DataPortabilityGatewayConfig, type GrantRegistrationMessage, type GrantRevocationMessage, type ServerRegistrationMessage, type BuilderRegistrationMessage, type AddDataMessage, type RecordDataAccessMessage, } from "./protocol/eip712";
40
- export { PERSONAL_SERVER_REGISTRATION_DEFAULT_CHAIN_ID, PERSONAL_SERVER_REGISTRATION_DEFAULT_VERIFYING_CONTRACT, personalServerRegistrationDomain, createViemPersonalServerRegistrationSigner, buildPersonalServerRegistrationTypedData, buildPersonalServerRegistrationSignature, registerPersonalServerSignature, type PersonalServerRegistrationTypedData, type PersonalServerRegistrationSigner, type PersonalServerRegistrationDomainInput, type ViemPersonalServerRegistrationWalletClient, type ViemPersonalServerRegistrationSignerSource, type BuildPersonalServerRegistrationTypedDataInput, type BuildPersonalServerRegistrationSignatureInput, type PersonalServerRegistrationSignature, } from "./protocol/personal-server-registration";
41
- export { PERSONAL_SERVER_LITE_OWNER_BINDING_VERSION, PERSONAL_SERVER_LITE_OWNER_BINDING_PURPOSE, PERSONAL_SERVER_LITE_OWNER_BINDING_PREFIX, buildPersonalServerLiteOwnerBindingMessage, createViemPersonalServerLiteOwnerBindingSigner, buildPersonalServerLiteOwnerBindingSignature, signPersonalServerLiteOwnerBinding, type PersonalServerLiteOwnerBindingPurpose, type PersonalServerLiteOwnerBindingMessage, type PersonalServerLiteOwnerBindingSigner, type ViemPersonalServerLiteOwnerBindingWalletClient, type ViemPersonalServerLiteOwnerBindingSignerSource, type BuildPersonalServerLiteOwnerBindingSignatureInput, type PersonalServerLiteOwnerBindingSignature, } from "./personal-server-lite/owner-binding";
42
- export { ACCOUNT_PERSONAL_SERVER_REGISTRATION_INTENT, AccountPersonalServerRegistrationError, signPersonalServerRegistrationWithAccount, type AccountPersonalServerRegistrationIntent, type AccountPersonalServerRegistrationSignature, type AccountPersonalServerRegistrationStatus, type AccountPersonalServerRegistrationRequest, type AccountPersonalServerRegistrationConfig, type AccountSignedPersonalServerRegistration, type AccountConfirmationRequiredPersonalServerRegistration, type AccountFallbackSignedPersonalServerRegistration, type AccountPersonalServerRegistrationResult, } from "./account/personal-server-registration";
43
- export { AccountPersonalServerLiteOwnerBindingError, signPersonalServerLiteOwnerBindingWithAccountClient, type AccountPersonalServerLiteOwnerBindingClient, type SignPersonalServerLiteOwnerBindingWithAccountClientConfig, } from "./account/personal-server-lite-owner-binding";
44
- export { isDataPortabilityGatewayConfig, verifyGrantRegistration, type VerifyGrantRegistrationInput, type VerifyGrantRegistrationResult, } from "./protocol/grants";
45
- export { FEE_REGISTRY_ABI, REGISTRATION_KIND_FOR_OP, getFee, getOpFee, type FeeKind, type FeeEntry, type OpFee, type FeeRegistryOptions, } from "./protocol/fee-registry";
46
- export { escrowContractAddress, encodeDepositNativeData, encodeDepositTokenData, buildDepositNativeRequest, buildDepositTokenRequest, type DepositNativeInput, type DepositTokenInput, type DepositTransactionRequest, } from "./protocol/escrow-deposit";
47
- export { DATA_REGISTRY_STATUS_ABI, DataPointStatus, dataRegistryContractAddress, encodeSetDataPointStatusData, buildSetDataPointStatusRequest, buildMarkDataPointUnavailableRequest, type SetDataPointStatusInput, type DataPointStatusTransactionRequest, } from "./protocol/data-point-status";
48
- export { personalServerDataReadPath, buildPersonalServerDataReadRequest, readPersonalServerData, type BuildPersonalServerDataReadRequestParams, type ReadPersonalServerDataParams, } from "./protocol/personal-server-data";
49
- export { ScopeSchema, parseScope, scopeToPathSegments, scopeMatchesPattern, scopeCoveredByGrant, type Scope, type ParsedScope, } from "./protocol/scopes";
50
- export { DataFileEnvelopeSchema, createDataFileEnvelope, IngestResponseSchema, type DataFileEnvelope, type IngestResponse, } from "./protocol/data-file";
51
- export { createGatewayClient, type GatewayEnvelope, type GatewayProof, type Builder, type Schema, type ServerInfo, type OwnerServerRecord, type OwnerServersResult, type GatewayGrantFee, type GatewayGrantStatus, type GatewayGrantResponse, type GrantListItem, type DataPointRecord, type DataPointListResult, type ListDataPointsOptions, type RegisterServerParams, type RegisterServerResult, type RegisterBuilderParams, type RegisterBuilderResult, type RegisterDataPointParams, type RegisterDataPointResult, type CreateGrantParams, type RevokeGrantParams, type AccessRecord, type PayForOperationParams, type PayForOperationResult, type SettleOpType, type SettleItem, type SettlePromoteResult, type SettleReconcileItem, type SettleParams, type SettleResult, type GatewayClient, } from "./protocol/gateway";
52
- export { createEscrowGatewayClient, genericPaymentDomain, GENERIC_PAYMENT_TYPES, ESCROW_DEPOSIT_ABI, NATIVE_ASSET_ADDRESS, type GenericPaymentMessage, type EscrowBalanceEntry, type EscrowBalanceResult, type EscrowBalanceSyncResult, type DepositSubmissionResult, type PaymentBreakdown, type EscrowPayResult, type SubmitDepositParams, type PayForOpParams, type EscrowGatewayClient, type SubmittedDepositEntry, type FinalizedDepositEntry, type FailedDepositEntry, } from "./protocol/escrow";
53
- export { PSError, parsePSError, type PSErrorCode } from "./types/ps-errors";
9
+ export type * from "./types.js";
10
+ export * from "./errors.js";
11
+ export * from "./contracts/contractController.js";
12
+ export { getAbi } from "./generated/abi/index.js";
13
+ export type { VanaContract, VanaContract as VanaContractAbi, } from "./generated/abi/index.js";
14
+ export { getContractAddress, CONTRACTS } from "./generated/addresses.js";
15
+ export type { VanaContractAddress } from "./generated/addresses.js";
16
+ export { vanaMainnet, mokshaTestnet, moksha, type VanaChainConfig, getChainConfig, getAllChains, } from "./chains.js";
17
+ export * from "./chains.js";
18
+ export { chains } from "./config/chains.js";
19
+ export { type ServiceEndpoints, mainnetServices, mokshaServices, getServiceEndpoints, } from "./config/default-services.js";
20
+ export * from "./storage/index.js";
21
+ export { createVanaStorageProvider } from "./storage/default.js";
22
+ export type { VanaStorageProviderOptions } from "./storage/default.js";
23
+ export { NodePlatformAdapter } from "./platform/node.js";
24
+ export { BrowserPlatformAdapter } from "./platform/browser.js";
25
+ export { NodeECIESUint8Provider as NodeECIESProvider } from "./crypto/ecies/node.js";
26
+ export type { VanaPlatformAdapter } from "./platform/interface.js";
27
+ export { ECIESError, isECIESEncrypted, serializeECIES, deserializeECIES, } from "./crypto/ecies/index.js";
28
+ export type { ECIESProvider, ECIESEncrypted, ECIESOptions, } from "./crypto/ecies/index.js";
29
+ export { detectPlatform, createPlatformAdapter, createPlatformAdapterFor, isPlatformSupported, getPlatformCapabilities, } from "./platform/utils.js";
30
+ export { createNodePlatformAdapter, createBrowserPlatformAdapter, createPlatformAdapterSafe, } from "./platform/browser-safe.js";
31
+ export { deriveMasterKey, deriveScopeKey, recoverServerOwner, MASTER_KEY_MESSAGE, } from "./crypto/keys/derive.js";
32
+ export { encryptWithPassword, decryptWithPassword, } from "./crypto/envelope/openpgp.js";
33
+ export { parseWeb3SignedHeader, verifyWeb3Signed, type Web3SignedPayload, type VerifiedAuth, } from "./auth/web3-signed.js";
34
+ export { buildWeb3SignedHeader, computeBodyHash, type Web3SignedSignFn, } from "./auth/web3-signed-builder.js";
35
+ export { MissingAuthError, InvalidSignatureError, ExpiredTokenError, } from "./auth/errors.js";
36
+ export { generatePkceVerifier, computePkceChallenge, verifyPkceChallenge, assertValidPkceVerifier, PKCE_VERIFIER_PATTERN, PKCE_CHALLENGE_PATTERN, } from "./auth/pkce.js";
37
+ export { InMemoryTokenStore, type TokenStore, type TokenRecord, } from "./auth/token-store.js";
38
+ export { OAuthClient, type OAuthClientConfig, type AuthorizationUrlResult, } from "./auth/oauth-client.js";
39
+ export { NATIVE_VANA_ASSET, dataRegistryDomain, grantRegistrationDomain, grantRevocationDomain, serverRegistrationDomain, builderRegistrationDomain, escrowPaymentDomain, GRANT_REGISTRATION_TYPES, GRANT_REVOCATION_TYPES, SERVER_REGISTRATION_TYPES, BUILDER_REGISTRATION_TYPES, ADD_DATA_TYPES, RECORD_DATA_ACCESS_TYPES, type DataPortabilityContracts, type DataPortabilityGatewayConfig, type GrantRegistrationMessage, type GrantRevocationMessage, type ServerRegistrationMessage, type BuilderRegistrationMessage, type AddDataMessage, type RecordDataAccessMessage, } from "./protocol/eip712.js";
40
+ export { PERSONAL_SERVER_REGISTRATION_DEFAULT_CHAIN_ID, PERSONAL_SERVER_REGISTRATION_DEFAULT_VERIFYING_CONTRACT, personalServerRegistrationDomain, createViemPersonalServerRegistrationSigner, buildPersonalServerRegistrationTypedData, buildPersonalServerRegistrationSignature, registerPersonalServerSignature, type PersonalServerRegistrationTypedData, type PersonalServerRegistrationSigner, type PersonalServerRegistrationDomainInput, type ViemPersonalServerRegistrationWalletClient, type ViemPersonalServerRegistrationSignerSource, type BuildPersonalServerRegistrationTypedDataInput, type BuildPersonalServerRegistrationSignatureInput, type PersonalServerRegistrationSignature, } from "./protocol/personal-server-registration.js";
41
+ export { PERSONAL_SERVER_LITE_OWNER_BINDING_VERSION, PERSONAL_SERVER_LITE_OWNER_BINDING_PURPOSE, PERSONAL_SERVER_LITE_OWNER_BINDING_PREFIX, buildPersonalServerLiteOwnerBindingMessage, createViemPersonalServerLiteOwnerBindingSigner, buildPersonalServerLiteOwnerBindingSignature, signPersonalServerLiteOwnerBinding, type PersonalServerLiteOwnerBindingPurpose, type PersonalServerLiteOwnerBindingMessage, type PersonalServerLiteOwnerBindingSigner, type ViemPersonalServerLiteOwnerBindingWalletClient, type ViemPersonalServerLiteOwnerBindingSignerSource, type BuildPersonalServerLiteOwnerBindingSignatureInput, type PersonalServerLiteOwnerBindingSignature, } from "./personal-server-lite/owner-binding.js";
42
+ export { ACCOUNT_PERSONAL_SERVER_REGISTRATION_INTENT, AccountPersonalServerRegistrationError, signPersonalServerRegistrationWithAccount, type AccountPersonalServerRegistrationIntent, type AccountPersonalServerRegistrationSignature, type AccountPersonalServerRegistrationStatus, type AccountPersonalServerRegistrationRequest, type AccountPersonalServerRegistrationConfig, type AccountSignedPersonalServerRegistration, type AccountConfirmationRequiredPersonalServerRegistration, type AccountFallbackSignedPersonalServerRegistration, type AccountPersonalServerRegistrationResult, } from "./account/personal-server-registration.js";
43
+ export { AccountPersonalServerLiteOwnerBindingError, signPersonalServerLiteOwnerBindingWithAccountClient, type AccountPersonalServerLiteOwnerBindingClient, type SignPersonalServerLiteOwnerBindingWithAccountClientConfig, } from "./account/personal-server-lite-owner-binding.js";
44
+ export { isDataPortabilityGatewayConfig, verifyGrantRegistration, type VerifyGrantRegistrationInput, type VerifyGrantRegistrationResult, } from "./protocol/grants.js";
45
+ export { FEE_REGISTRY_ABI, REGISTRATION_KIND_FOR_OP, getFee, getOpFee, type FeeKind, type FeeEntry, type OpFee, type FeeRegistryOptions, } from "./protocol/fee-registry.js";
46
+ export { escrowContractAddress, encodeDepositNativeData, encodeDepositTokenData, buildDepositNativeRequest, buildDepositTokenRequest, type DepositNativeInput, type DepositTokenInput, type DepositTransactionRequest, } from "./protocol/escrow-deposit.js";
47
+ export { DATA_REGISTRY_STATUS_ABI, DataPointStatus, dataRegistryContractAddress, encodeSetDataPointStatusData, buildSetDataPointStatusRequest, buildMarkDataPointUnavailableRequest, type SetDataPointStatusInput, type DataPointStatusTransactionRequest, } from "./protocol/data-point-status.js";
48
+ export { personalServerDataReadPath, buildPersonalServerDataReadRequest, readPersonalServerData, type BuildPersonalServerDataReadRequestParams, type ReadPersonalServerDataParams, } from "./protocol/personal-server-data.js";
49
+ export { ScopeSchema, parseScope, scopeToPathSegments, scopeMatchesPattern, scopeCoveredByGrant, type Scope, type ParsedScope, } from "./protocol/scopes.js";
50
+ export { DataFileEnvelopeSchema, createDataFileEnvelope, IngestResponseSchema, type DataFileEnvelope, type IngestResponse, } from "./protocol/data-file.js";
51
+ export { createGatewayClient, type GatewayEnvelope, type GatewayProof, type Builder, type Schema, type ServerInfo, type OwnerServerRecord, type OwnerServersResult, type GatewayGrantFee, type GatewayGrantStatus, type GatewayGrantResponse, type GrantListItem, type DataPointRecord, type DataPointListResult, type ListDataPointsOptions, type RegisterServerParams, type RegisterServerResult, type RegisterBuilderParams, type RegisterBuilderResult, type RegisterDataPointParams, type RegisterDataPointResult, type CreateGrantParams, type RevokeGrantParams, type AccessRecord, type PayForOperationParams, type PayForOperationResult, type SettleOpType, type SettleItem, type SettlePromoteResult, type SettleReconcileItem, type SettleParams, type SettleResult, type GatewayClient, } from "./protocol/gateway.js";
52
+ export { createEscrowGatewayClient, genericPaymentDomain, GENERIC_PAYMENT_TYPES, ESCROW_DEPOSIT_ABI, NATIVE_ASSET_ADDRESS, type GenericPaymentMessage, type EscrowBalanceEntry, type EscrowBalanceResult, type EscrowBalanceSyncResult, type DepositSubmissionResult, type PaymentBreakdown, type EscrowPayResult, type SubmitDepositParams, type PayForOpParams, type EscrowGatewayClient, type SubmittedDepositEntry, type FinalizedDepositEntry, type FailedDepositEntry, } from "./protocol/escrow.js";
53
+ export { authorizeEscrowPayment, authorizeGrantPayment, buildEscrowPaymentHeader, buildGrantPaymentHeader, createDefaultNonceSource, DATA_ACCESS_OP_TYPE, GRANT_OP_TYPE, paymentReceiptFromHeader, paymentResponseMetadataFromHeader, toDirectFeeBreakdown, toDirectPaymentReceipt, type EscrowPaymentConfig, type EscrowPaymentHeaderConfig, type PaymentNonceSource, type SignTypedDataFn, } from "./direct/escrow-payment.js";
54
+ export { parsePersonalServerPaymentRequired, type FetchResponseLike, } from "./direct/personal-server-read.js";
55
+ export type { DirectPaymentResponseMetadata, PersonalServerDataAccessPaymentOperation, PersonalServerGrantPaymentOperation, PersonalServerPaymentOperation, PersonalServerPaymentRequired, } from "./direct/types.js";
56
+ export { PSError, parsePSError, type PSErrorCode } from "./types/ps-errors.js";