@arcenpay/node 0.0.1 → 0.0.2

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.mts CHANGED
@@ -1,7 +1,6 @@
1
- import { X402VerifiedPaymentContext, ArcenCompanyKeys, ArcenUserKeys, IdentifyResult, ConsumeEntitlementResult, FlagResult, EntitlementResult, ArcenCompany, EmbedAccessTokenResponse, UsageProof, PublicInputs, BillingSettlement, PlanTier } from '@arcenpay/sdk';
2
- export { ArcenCompany, ArcenCompanyKeys, ArcenUser, ArcenUserKeys, ConsumeEntitlementResult, EntitlementResult, FlagResult, IdentifyResult } from '@arcenpay/sdk';
1
+ import { X as X402VerifiedPaymentContext, A as ArcenCompanyKeys, a as ArcenUserKeys, I as IdentifyResult, C as ConsumeEntitlementResult, F as FlagResult, E as EntitlementResult, b as ArcenCompany, c as EmbedAccessTokenResponse, U as UsageProof, P as PublicInputs, B as BillingSettlement, d as PlanTier } from './tableland-gyl7O0n6.mjs';
2
+ export { e as ArcenUser, T as TablelandConfig, f as TablelandService } from './tableland-gyl7O0n6.mjs';
3
3
  import { Request, Response, NextFunction } from 'express';
4
- export { TablelandConfig, TablelandService } from './tableland.mjs';
5
4
 
6
5
  declare global {
7
6
  namespace Express {
@@ -406,7 +405,7 @@ declare class SettlementWriterService {
406
405
  settleForSigner(input: SettleForSignerInput): Promise<SettlementWriteResult>;
407
406
  }
408
407
 
409
- type SubscriptionEventType = 'minted' | 'renewed' | 'cancelled' | 'plan_changed' | 'billing_executed';
408
+ type SubscriptionEventType = "minted" | "renewed" | "cancelled" | "plan_changed" | "billing_executed";
410
409
  interface SubscriptionEventData {
411
410
  type: SubscriptionEventType;
412
411
  tokenId: bigint;
@@ -451,7 +450,7 @@ declare class EventListenerService {
451
450
  /**
452
451
  * Register a callback for a specific event type (or '*' for all events)
453
452
  */
454
- on(eventType: SubscriptionEventType | '*', callback: EventCallback): () => void;
453
+ on(eventType: SubscriptionEventType | "*", callback: EventCallback): () => void;
455
454
  /**
456
455
  * Start polling for events at the given interval
457
456
  */
@@ -582,7 +581,7 @@ interface EmailRecipient {
582
581
  walletAddress: string;
583
582
  name?: string;
584
583
  }
585
- type EmailTemplate = 'welcome' | 'renewal_receipt' | 'payment_failed' | 'subscription_expiring' | 'access_revoked' | 'low_session_balance';
584
+ type EmailTemplate = "welcome" | "renewal_receipt" | "payment_failed" | "subscription_expiring" | "access_revoked" | "low_session_balance";
586
585
  /**
587
586
  * EmailService — Transactional email notifications via Resend API.
588
587
  *
@@ -616,12 +615,12 @@ declare class EmailService {
616
615
 
617
616
  interface LitAccessCondition {
618
617
  contractAddress: string;
619
- standardContractType: 'ERC721' | 'ERC1155' | 'Custom';
618
+ standardContractType: "ERC721" | "ERC1155" | "Custom";
620
619
  chain: string;
621
620
  method: string;
622
621
  parameters: string[];
623
622
  returnValueTest: {
624
- comparator: '>' | '<' | '=' | '>=' | '<=';
623
+ comparator: ">" | "<" | "=" | ">=" | "<=";
625
624
  value: string;
626
625
  };
627
626
  }
@@ -630,7 +629,7 @@ interface LitConfig {
630
629
  * Supported Lit network aliases.
631
630
  * Legacy names are kept for backwards compatibility with older env files.
632
631
  */
633
- network: 'manzano' | 'habanero' | 'datil-dev' | 'datil-test' | 'datil';
632
+ network: "manzano" | "habanero" | "datil-dev" | "datil-test" | "datil";
634
633
  /** SubscriptionRegistry contract address */
635
634
  registryAddress: string;
636
635
  /** Chain name used in ACC conditions (e.g., 'baseSepolia', 'base', 'sepolia') */
@@ -1080,4 +1079,4 @@ declare function createProtocolEvent<TPayload>(name: ProtocolEventName, payload:
1080
1079
  }): ProtocolEvent<TPayload>;
1081
1080
  declare function mapProtocolEventToBillingType(name: ProtocolEventName): "SUBSCRIPTION_MINTED" | "SUBSCRIPTION_RENEWED" | "SUBSCRIPTION_CANCELLED" | "PAYMENT_FAILED";
1082
1081
 
1083
- export { type ActivateSubscriptionInput, type ActivateSubscriptionResult, AggregatorService, ArcenApiError, ArcenClient, type ArcenClientConfig, AxelarTransport, type AxelarTransportConfig, BillingKeeper, type BillingKeeperConfig, type CCIPDispatchResult, CCIPTransport, type CCIPTransportConfig, type DispatchResult, type EmailConfig, EmailService, type EmailTemplate, EventListenerService, type IdentifyInput, InMemoryNonceStore, type LitAccessCondition, type LitConfig, LitProtocolService, type NonceStore, PROTOCOL_EVENT_SCHEMA_VERSION, type PersistedUsageEntry, type ProofMode, ProofOrchestrator, type ProofOrchestratorConfig, type ProtocolEvent, type ProtocolEventName, type ProtocolEventSource, type RedisLike, RedisNonceStore, RedisUsageStore, type RedisUsageStoreConfig, type SettleForSignerInput, SettlementService, type SettlementWriteResult, type SettlementWriterConfig, SettlementWriterService, type SubscriptionEventData, type SubscriptionEventType, type TrackEventInput, UsageProofError, type UsageProofErrorCode, UsageProofErrorCodes, UsageService, type UsageServiceConfig, type WebhookConfig, type WebhookDeliveryLog, type WebhookPayload, WebhookService, type X402MiddlewareOptions, buildEventIdempotencyKey, createProtocolEvent, mapProtocolEventToBillingType, verifyWebhookSignature, x402Middleware };
1082
+ export { type ActivateSubscriptionInput, type ActivateSubscriptionResult, AggregatorService, ArcenApiError, ArcenClient, type ArcenClientConfig, ArcenCompany, ArcenCompanyKeys, ArcenUserKeys, AxelarTransport, type AxelarTransportConfig, BillingKeeper, type BillingKeeperConfig, type CCIPDispatchResult, CCIPTransport, type CCIPTransportConfig, ConsumeEntitlementResult, type DispatchResult, type EmailConfig, EmailService, type EmailTemplate, EntitlementResult, EventListenerService, FlagResult, type IdentifyInput, IdentifyResult, InMemoryNonceStore, type LitAccessCondition, type LitConfig, LitProtocolService, type NonceStore, PROTOCOL_EVENT_SCHEMA_VERSION, type PersistedUsageEntry, type ProofMode, ProofOrchestrator, type ProofOrchestratorConfig, type ProtocolEvent, type ProtocolEventName, type ProtocolEventSource, type RedisLike, RedisNonceStore, RedisUsageStore, type RedisUsageStoreConfig, type SettleForSignerInput, SettlementService, type SettlementWriteResult, type SettlementWriterConfig, SettlementWriterService, type SubscriptionEventData, type SubscriptionEventType, type TrackEventInput, UsageProofError, type UsageProofErrorCode, UsageProofErrorCodes, UsageService, type UsageServiceConfig, type WebhookConfig, type WebhookDeliveryLog, type WebhookPayload, WebhookService, type X402MiddlewareOptions, buildEventIdempotencyKey, createProtocolEvent, mapProtocolEventToBillingType, verifyWebhookSignature, x402Middleware };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { X402VerifiedPaymentContext, ArcenCompanyKeys, ArcenUserKeys, IdentifyResult, ConsumeEntitlementResult, FlagResult, EntitlementResult, ArcenCompany, EmbedAccessTokenResponse, UsageProof, PublicInputs, BillingSettlement, PlanTier } from '@arcenpay/sdk';
2
- export { ArcenCompany, ArcenCompanyKeys, ArcenUser, ArcenUserKeys, ConsumeEntitlementResult, EntitlementResult, FlagResult, IdentifyResult } from '@arcenpay/sdk';
1
+ import { X as X402VerifiedPaymentContext, A as ArcenCompanyKeys, a as ArcenUserKeys, I as IdentifyResult, C as ConsumeEntitlementResult, F as FlagResult, E as EntitlementResult, b as ArcenCompany, c as EmbedAccessTokenResponse, U as UsageProof, P as PublicInputs, B as BillingSettlement, d as PlanTier } from './tableland-gyl7O0n6.js';
2
+ export { e as ArcenUser, T as TablelandConfig, f as TablelandService } from './tableland-gyl7O0n6.js';
3
3
  import { Request, Response, NextFunction } from 'express';
4
- export { TablelandConfig, TablelandService } from './tableland.js';
5
4
 
6
5
  declare global {
7
6
  namespace Express {
@@ -406,7 +405,7 @@ declare class SettlementWriterService {
406
405
  settleForSigner(input: SettleForSignerInput): Promise<SettlementWriteResult>;
407
406
  }
408
407
 
409
- type SubscriptionEventType = 'minted' | 'renewed' | 'cancelled' | 'plan_changed' | 'billing_executed';
408
+ type SubscriptionEventType = "minted" | "renewed" | "cancelled" | "plan_changed" | "billing_executed";
410
409
  interface SubscriptionEventData {
411
410
  type: SubscriptionEventType;
412
411
  tokenId: bigint;
@@ -451,7 +450,7 @@ declare class EventListenerService {
451
450
  /**
452
451
  * Register a callback for a specific event type (or '*' for all events)
453
452
  */
454
- on(eventType: SubscriptionEventType | '*', callback: EventCallback): () => void;
453
+ on(eventType: SubscriptionEventType | "*", callback: EventCallback): () => void;
455
454
  /**
456
455
  * Start polling for events at the given interval
457
456
  */
@@ -582,7 +581,7 @@ interface EmailRecipient {
582
581
  walletAddress: string;
583
582
  name?: string;
584
583
  }
585
- type EmailTemplate = 'welcome' | 'renewal_receipt' | 'payment_failed' | 'subscription_expiring' | 'access_revoked' | 'low_session_balance';
584
+ type EmailTemplate = "welcome" | "renewal_receipt" | "payment_failed" | "subscription_expiring" | "access_revoked" | "low_session_balance";
586
585
  /**
587
586
  * EmailService — Transactional email notifications via Resend API.
588
587
  *
@@ -616,12 +615,12 @@ declare class EmailService {
616
615
 
617
616
  interface LitAccessCondition {
618
617
  contractAddress: string;
619
- standardContractType: 'ERC721' | 'ERC1155' | 'Custom';
618
+ standardContractType: "ERC721" | "ERC1155" | "Custom";
620
619
  chain: string;
621
620
  method: string;
622
621
  parameters: string[];
623
622
  returnValueTest: {
624
- comparator: '>' | '<' | '=' | '>=' | '<=';
623
+ comparator: ">" | "<" | "=" | ">=" | "<=";
625
624
  value: string;
626
625
  };
627
626
  }
@@ -630,7 +629,7 @@ interface LitConfig {
630
629
  * Supported Lit network aliases.
631
630
  * Legacy names are kept for backwards compatibility with older env files.
632
631
  */
633
- network: 'manzano' | 'habanero' | 'datil-dev' | 'datil-test' | 'datil';
632
+ network: "manzano" | "habanero" | "datil-dev" | "datil-test" | "datil";
634
633
  /** SubscriptionRegistry contract address */
635
634
  registryAddress: string;
636
635
  /** Chain name used in ACC conditions (e.g., 'baseSepolia', 'base', 'sepolia') */
@@ -1080,4 +1079,4 @@ declare function createProtocolEvent<TPayload>(name: ProtocolEventName, payload:
1080
1079
  }): ProtocolEvent<TPayload>;
1081
1080
  declare function mapProtocolEventToBillingType(name: ProtocolEventName): "SUBSCRIPTION_MINTED" | "SUBSCRIPTION_RENEWED" | "SUBSCRIPTION_CANCELLED" | "PAYMENT_FAILED";
1082
1081
 
1083
- export { type ActivateSubscriptionInput, type ActivateSubscriptionResult, AggregatorService, ArcenApiError, ArcenClient, type ArcenClientConfig, AxelarTransport, type AxelarTransportConfig, BillingKeeper, type BillingKeeperConfig, type CCIPDispatchResult, CCIPTransport, type CCIPTransportConfig, type DispatchResult, type EmailConfig, EmailService, type EmailTemplate, EventListenerService, type IdentifyInput, InMemoryNonceStore, type LitAccessCondition, type LitConfig, LitProtocolService, type NonceStore, PROTOCOL_EVENT_SCHEMA_VERSION, type PersistedUsageEntry, type ProofMode, ProofOrchestrator, type ProofOrchestratorConfig, type ProtocolEvent, type ProtocolEventName, type ProtocolEventSource, type RedisLike, RedisNonceStore, RedisUsageStore, type RedisUsageStoreConfig, type SettleForSignerInput, SettlementService, type SettlementWriteResult, type SettlementWriterConfig, SettlementWriterService, type SubscriptionEventData, type SubscriptionEventType, type TrackEventInput, UsageProofError, type UsageProofErrorCode, UsageProofErrorCodes, UsageService, type UsageServiceConfig, type WebhookConfig, type WebhookDeliveryLog, type WebhookPayload, WebhookService, type X402MiddlewareOptions, buildEventIdempotencyKey, createProtocolEvent, mapProtocolEventToBillingType, verifyWebhookSignature, x402Middleware };
1082
+ export { type ActivateSubscriptionInput, type ActivateSubscriptionResult, AggregatorService, ArcenApiError, ArcenClient, type ArcenClientConfig, ArcenCompany, ArcenCompanyKeys, ArcenUserKeys, AxelarTransport, type AxelarTransportConfig, BillingKeeper, type BillingKeeperConfig, type CCIPDispatchResult, CCIPTransport, type CCIPTransportConfig, ConsumeEntitlementResult, type DispatchResult, type EmailConfig, EmailService, type EmailTemplate, EntitlementResult, EventListenerService, FlagResult, type IdentifyInput, IdentifyResult, InMemoryNonceStore, type LitAccessCondition, type LitConfig, LitProtocolService, type NonceStore, PROTOCOL_EVENT_SCHEMA_VERSION, type PersistedUsageEntry, type ProofMode, ProofOrchestrator, type ProofOrchestratorConfig, type ProtocolEvent, type ProtocolEventName, type ProtocolEventSource, type RedisLike, RedisNonceStore, RedisUsageStore, type RedisUsageStoreConfig, type SettleForSignerInput, SettlementService, type SettlementWriteResult, type SettlementWriterConfig, SettlementWriterService, type SubscriptionEventData, type SubscriptionEventType, type TrackEventInput, UsageProofError, type UsageProofErrorCode, UsageProofErrorCodes, UsageService, type UsageServiceConfig, type WebhookConfig, type WebhookDeliveryLog, type WebhookPayload, WebhookService, type X402MiddlewareOptions, buildEventIdempotencyKey, createProtocolEvent, mapProtocolEventToBillingType, verifyWebhookSignature, x402Middleware };