@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/_esm-H6IRXC3A.mjs +804 -0
- package/dist/_esm-HVKNJV5D.mjs +127 -0
- package/dist/chains-3R75GF4L.mjs +21 -0
- package/dist/{chunk-SKFD6TSD.mjs → chunk-5CPGRELK.mjs} +3 -25
- package/dist/chunk-E2J5KZ6E.mjs +41 -0
- package/dist/chunk-GY2HMODH.mjs +94 -0
- package/dist/chunk-XHLV6BIG.mjs +10224 -0
- package/dist/index.d.mts +9 -10
- package/dist/index.d.ts +9 -10
- package/dist/index.js +1328 -180
- package/dist/index.mjs +1218 -153
- package/dist/tableland-gyl7O0n6.d.mts +191 -0
- package/dist/tableland-gyl7O0n6.d.ts +191 -0
- package/dist/tableland.d.mts +1 -46
- package/dist/tableland.d.ts +1 -46
- package/dist/tableland.js +3 -1
- package/dist/tableland.mjs +2 -1
- package/package.json +6 -2
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 '
|
|
2
|
-
export {
|
|
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 =
|
|
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 |
|
|
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 =
|
|
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:
|
|
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:
|
|
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 '
|
|
2
|
-
export {
|
|
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 =
|
|
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 |
|
|
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 =
|
|
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:
|
|
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:
|
|
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 };
|