mppx 0.6.18 → 0.6.20
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/CHANGELOG.md +13 -0
- package/dist/Challenge.d.ts +2 -2
- package/dist/Challenge.d.ts.map +1 -1
- package/dist/Challenge.js +1 -1
- package/dist/Challenge.js.map +1 -1
- package/dist/Method.d.ts +34 -0
- package/dist/Method.d.ts.map +1 -1
- package/dist/Method.js +3 -1
- package/dist/Method.js.map +1 -1
- package/dist/Receipt.d.ts +1 -0
- package/dist/Receipt.d.ts.map +1 -1
- package/dist/Receipt.js +2 -0
- package/dist/Receipt.js.map +1 -1
- package/dist/client/Methods.d.ts +1 -0
- package/dist/client/Methods.d.ts.map +1 -1
- package/dist/client/Methods.js +1 -0
- package/dist/client/Methods.js.map +1 -1
- package/dist/middlewares/elysia.d.ts.map +1 -1
- package/dist/middlewares/elysia.js +14 -0
- package/dist/middlewares/elysia.js.map +1 -1
- package/dist/middlewares/express.d.ts.map +1 -1
- package/dist/middlewares/express.js +1 -2
- package/dist/middlewares/express.js.map +1 -1
- package/dist/middlewares/hono.d.ts.map +1 -1
- package/dist/middlewares/hono.js +14 -0
- package/dist/middlewares/hono.js.map +1 -1
- package/dist/middlewares/nextjs.d.ts.map +1 -1
- package/dist/middlewares/nextjs.js +14 -0
- package/dist/middlewares/nextjs.js.map +1 -1
- package/dist/proxy/Proxy.d.ts.map +1 -1
- package/dist/proxy/Proxy.js +2 -2
- package/dist/proxy/Proxy.js.map +1 -1
- package/dist/proxy/Service.d.ts.map +1 -1
- package/dist/proxy/Service.js +1 -1
- package/dist/proxy/Service.js.map +1 -1
- package/dist/server/Mppx.d.ts +15 -3
- package/dist/server/Mppx.d.ts.map +1 -1
- package/dist/server/Mppx.js +190 -40
- package/dist/server/Mppx.js.map +1 -1
- package/dist/stripe/server/internal/html.gen.d.ts +1 -1
- package/dist/stripe/server/internal/html.gen.d.ts.map +1 -1
- package/dist/stripe/server/internal/html.gen.js +1 -1
- package/dist/stripe/server/internal/html.gen.js.map +1 -1
- package/dist/tempo/Methods.d.ts +96 -0
- package/dist/tempo/Methods.d.ts.map +1 -1
- package/dist/tempo/Methods.js +97 -0
- package/dist/tempo/Methods.js.map +1 -1
- package/dist/tempo/client/Methods.d.ts +3 -0
- package/dist/tempo/client/Methods.d.ts.map +1 -1
- package/dist/tempo/client/Methods.js +3 -0
- package/dist/tempo/client/Methods.js.map +1 -1
- package/dist/tempo/client/Subscription.d.ts +114 -0
- package/dist/tempo/client/Subscription.d.ts.map +1 -0
- package/dist/tempo/client/Subscription.js +100 -0
- package/dist/tempo/client/Subscription.js.map +1 -0
- package/dist/tempo/client/index.d.ts +1 -0
- package/dist/tempo/client/index.d.ts.map +1 -1
- package/dist/tempo/client/index.js +1 -0
- package/dist/tempo/client/index.js.map +1 -1
- package/dist/tempo/index.d.ts +1 -0
- package/dist/tempo/index.d.ts.map +1 -1
- package/dist/tempo/index.js +1 -0
- package/dist/tempo/index.js.map +1 -1
- package/dist/tempo/server/Charge.js +2 -2
- package/dist/tempo/server/Charge.js.map +1 -1
- package/dist/tempo/server/Methods.d.ts +5 -0
- package/dist/tempo/server/Methods.d.ts.map +1 -1
- package/dist/tempo/server/Methods.js +5 -0
- package/dist/tempo/server/Methods.js.map +1 -1
- package/dist/tempo/server/Subscription.d.ts +221 -0
- package/dist/tempo/server/Subscription.d.ts.map +1 -0
- package/dist/tempo/server/Subscription.js +637 -0
- package/dist/tempo/server/Subscription.js.map +1 -0
- package/dist/tempo/server/index.d.ts +1 -0
- package/dist/tempo/server/index.d.ts.map +1 -1
- package/dist/tempo/server/index.js +1 -0
- package/dist/tempo/server/index.js.map +1 -1
- package/dist/tempo/server/internal/html.gen.d.ts +1 -1
- package/dist/tempo/server/internal/html.gen.d.ts.map +1 -1
- package/dist/tempo/server/internal/html.gen.js +1 -1
- package/dist/tempo/server/internal/html.gen.js.map +1 -1
- package/dist/tempo/session/Chain.d.ts.map +1 -1
- package/dist/tempo/session/Chain.js +3 -4
- package/dist/tempo/session/Chain.js.map +1 -1
- package/dist/tempo/subscription/KeyAuthorization.d.ts +282 -0
- package/dist/tempo/subscription/KeyAuthorization.d.ts.map +1 -0
- package/dist/tempo/subscription/KeyAuthorization.js +297 -0
- package/dist/tempo/subscription/KeyAuthorization.js.map +1 -0
- package/dist/tempo/subscription/Receipt.d.ts +10 -0
- package/dist/tempo/subscription/Receipt.d.ts.map +1 -0
- package/dist/tempo/subscription/Receipt.js +16 -0
- package/dist/tempo/subscription/Receipt.js.map +1 -0
- package/dist/tempo/subscription/Store.d.ts +99 -0
- package/dist/tempo/subscription/Store.d.ts.map +1 -0
- package/dist/tempo/subscription/Store.js +292 -0
- package/dist/tempo/subscription/Store.js.map +1 -0
- package/dist/tempo/subscription/Types.d.ts +65 -0
- package/dist/tempo/subscription/Types.d.ts.map +1 -0
- package/dist/tempo/subscription/Types.js +2 -0
- package/dist/tempo/subscription/Types.js.map +1 -0
- package/dist/tempo/subscription/index.d.ts +6 -0
- package/dist/tempo/subscription/index.d.ts.map +1 -0
- package/dist/tempo/subscription/index.js +4 -0
- package/dist/tempo/subscription/index.js.map +1 -0
- package/dist/zod.d.ts +7 -0
- package/dist/zod.d.ts.map +1 -1
- package/dist/zod.js +18 -0
- package/dist/zod.js.map +1 -1
- package/package.json +3 -3
- package/src/Challenge.test.ts +13 -0
- package/src/Challenge.ts +3 -3
- package/src/Method.ts +46 -1
- package/src/Receipt.ts +2 -0
- package/src/client/Methods.ts +1 -0
- package/src/middlewares/elysia.test.ts +31 -1
- package/src/middlewares/elysia.ts +13 -0
- package/src/middlewares/express.ts +1 -5
- package/src/middlewares/hono.test.ts +30 -1
- package/src/middlewares/hono.ts +13 -0
- package/src/middlewares/nextjs.test.ts +28 -1
- package/src/middlewares/nextjs.ts +13 -0
- package/src/proxy/Proxy.ts +2 -5
- package/src/proxy/Service.test.ts +34 -0
- package/src/proxy/Service.ts +7 -0
- package/src/server/Mppx.authorize.test.ts +210 -0
- package/src/server/Mppx.test-d.ts +23 -1
- package/src/server/Mppx.test.ts +73 -3
- package/src/server/Mppx.ts +291 -58
- package/src/stripe/server/internal/html/package.json +1 -1
- package/src/stripe/server/internal/html.gen.ts +1 -1
- package/src/tempo/Methods.test.ts +131 -0
- package/src/tempo/Methods.ts +136 -0
- package/src/tempo/Subscription.integration.test.ts +591 -0
- package/src/tempo/client/Methods.ts +3 -0
- package/src/tempo/client/Subscription.test.ts +131 -0
- package/src/tempo/client/Subscription.ts +155 -0
- package/src/tempo/client/index.ts +1 -0
- package/src/tempo/index.ts +1 -0
- package/src/tempo/server/Charge.ts +2 -2
- package/src/tempo/server/Methods.ts +5 -0
- package/src/tempo/server/Subscription.test.ts +1410 -0
- package/src/tempo/server/Subscription.ts +1014 -0
- package/src/tempo/server/index.ts +1 -0
- package/src/tempo/server/internal/html/package.json +1 -1
- package/src/tempo/server/internal/html.gen.ts +1 -1
- package/src/tempo/session/Chain.ts +3 -5
- package/src/tempo/subscription/KeyAuthorization.test.ts +204 -0
- package/src/tempo/subscription/KeyAuthorization.ts +394 -0
- package/src/tempo/subscription/Receipt.ts +28 -0
- package/src/tempo/subscription/Store.test.ts +554 -0
- package/src/tempo/subscription/Store.ts +431 -0
- package/src/tempo/subscription/Types.ts +68 -0
- package/src/tempo/subscription/index.ts +23 -0
- package/src/zod.test.ts +23 -1
- package/src/zod.ts +24 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { type Address } from 'viem';
|
|
2
|
+
import type { LooseOmit, MaybePromise, NoExtraKeys } from '../../internal/types.js';
|
|
3
|
+
import * as Method from '../../Method.js';
|
|
4
|
+
import * as Store from '../../Store.js';
|
|
5
|
+
import type * as Client from '../../viem/Client.js';
|
|
6
|
+
import * as Account from '../internal/account.js';
|
|
7
|
+
import type * as types from '../internal/types.js';
|
|
8
|
+
import * as Methods from '../Methods.js';
|
|
9
|
+
import type { SubscriptionAccessKey, SubscriptionCredentialPayload, SubscriptionLookup, SubscriptionPeriodUnit, SubscriptionRecord, SubscriptionReceipt as SubscriptionReceiptValue } from '../subscription/Types.js';
|
|
10
|
+
type SubscriptionRequest = ReturnType<typeof Methods.subscription.schema.request.parse>;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a Tempo subscription method for recurring TIP-20 token payments.
|
|
13
|
+
*
|
|
14
|
+
* The method handles activation, request-path reuse, and optional lazy renewals.
|
|
15
|
+
*/
|
|
16
|
+
export declare function subscription<const parameters extends subscription.Parameters>(p: NoExtraKeys<parameters, subscription.Parameters>): Method.Server<{
|
|
17
|
+
readonly name: "tempo";
|
|
18
|
+
readonly intent: "subscription";
|
|
19
|
+
readonly schema: {
|
|
20
|
+
readonly credential: {
|
|
21
|
+
readonly payload: import("zod/mini").ZodMiniObject<{
|
|
22
|
+
signature: import("zod/mini").ZodMiniString<string>;
|
|
23
|
+
type: import("zod/mini").ZodMiniLiteral<"keyAuthorization">;
|
|
24
|
+
}, import("zod/v4/core").$strip>;
|
|
25
|
+
};
|
|
26
|
+
readonly request: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniObject<{
|
|
27
|
+
amount: import("zod/mini").ZodMiniString<string>;
|
|
28
|
+
accessKey: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniObject<{
|
|
29
|
+
accessKeyAddress: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<`0x${string}`, string>>;
|
|
30
|
+
keyType: import("zod/mini").ZodMiniEnum<{
|
|
31
|
+
secp256k1: "secp256k1";
|
|
32
|
+
p256: "p256";
|
|
33
|
+
webAuthn: "webAuthn";
|
|
34
|
+
}>;
|
|
35
|
+
}, import("zod/v4/core").$strip>>;
|
|
36
|
+
chainId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniNumber<number>>;
|
|
37
|
+
currency: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<`0x${string}`, string>>;
|
|
38
|
+
decimals: import("zod/mini").ZodMiniNumber<number>;
|
|
39
|
+
description: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
40
|
+
externalId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
41
|
+
methodDetails: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniObject<{
|
|
42
|
+
accessKey: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniObject<{
|
|
43
|
+
accessKeyAddress: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<`0x${string}`, string>>;
|
|
44
|
+
keyType: import("zod/mini").ZodMiniEnum<{
|
|
45
|
+
secp256k1: "secp256k1";
|
|
46
|
+
p256: "p256";
|
|
47
|
+
webAuthn: "webAuthn";
|
|
48
|
+
}>;
|
|
49
|
+
}, import("zod/v4/core").$strip>>;
|
|
50
|
+
chainId: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniNumber<number>>;
|
|
51
|
+
}, import("zod/v4/core").$strip>>;
|
|
52
|
+
periodCount: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniBigInt<bigint>, import("zod/mini").ZodMiniCustom<number, number>]>, import("zod/mini").ZodMiniTransform<string, string | number | bigint>>;
|
|
53
|
+
periodUnit: import("zod/mini").ZodMiniEnum<{
|
|
54
|
+
day: "day";
|
|
55
|
+
week: "week";
|
|
56
|
+
}>;
|
|
57
|
+
recipient: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<`0x${string}`, string>>;
|
|
58
|
+
subscriptionExpires: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniCustom<Date, Date>]>, import("zod/mini").ZodMiniTransform<Date, import("../../zod.js").DatetimeInput>>;
|
|
59
|
+
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniTransform<{
|
|
60
|
+
methodDetails?: {
|
|
61
|
+
accessKey?: import("zod").infer<import("zod/mini").ZodMiniObject<{
|
|
62
|
+
accessKeyAddress: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<`0x${string}`, string>>;
|
|
63
|
+
keyType: import("zod/mini").ZodMiniEnum<{
|
|
64
|
+
secp256k1: "secp256k1";
|
|
65
|
+
p256: "p256";
|
|
66
|
+
webAuthn: "webAuthn";
|
|
67
|
+
}>;
|
|
68
|
+
}, import("zod/v4/core").$strip>> | undefined;
|
|
69
|
+
chainId?: number | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
amount: string;
|
|
72
|
+
subscriptionExpires: string;
|
|
73
|
+
currency: `0x${string}`;
|
|
74
|
+
periodCount: string;
|
|
75
|
+
periodUnit: "day" | "week";
|
|
76
|
+
recipient: `0x${string}`;
|
|
77
|
+
description?: string | undefined;
|
|
78
|
+
externalId?: string | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
amount: string;
|
|
81
|
+
currency: `0x${string}`;
|
|
82
|
+
decimals: number;
|
|
83
|
+
periodCount: string;
|
|
84
|
+
periodUnit: "day" | "week";
|
|
85
|
+
recipient: `0x${string}`;
|
|
86
|
+
subscriptionExpires: Date;
|
|
87
|
+
accessKey?: {
|
|
88
|
+
accessKeyAddress: `0x${string}`;
|
|
89
|
+
keyType: "secp256k1" | "p256" | "webAuthn";
|
|
90
|
+
} | undefined;
|
|
91
|
+
chainId?: number | undefined;
|
|
92
|
+
description?: string | undefined;
|
|
93
|
+
externalId?: string | undefined;
|
|
94
|
+
methodDetails?: {
|
|
95
|
+
accessKey?: {
|
|
96
|
+
accessKeyAddress: `0x${string}`;
|
|
97
|
+
keyType: "secp256k1" | "p256" | "webAuthn";
|
|
98
|
+
} | undefined;
|
|
99
|
+
chainId?: number | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
}>>;
|
|
102
|
+
};
|
|
103
|
+
}, subscription.DeriveDefaults<parameters>, undefined>;
|
|
104
|
+
/**
|
|
105
|
+
* Renews an overdue subscription outside of the HTTP request path.
|
|
106
|
+
* Intended for cron jobs or background workers that bill subscriptions on a schedule.
|
|
107
|
+
*
|
|
108
|
+
* Returns the renewal result if the subscription was overdue, or `null` if already current.
|
|
109
|
+
*/
|
|
110
|
+
export declare function renew(parameters: renew.Parameters): Promise<renew.Result | null>;
|
|
111
|
+
export declare namespace renew {
|
|
112
|
+
/** Parameters for renewing an overdue subscription outside the request path. */
|
|
113
|
+
type Parameters = {
|
|
114
|
+
/** The subscription to renew. */
|
|
115
|
+
subscriptionId: string;
|
|
116
|
+
/** Billing callback — same signature as the `renew` hook on {@link subscription}. */
|
|
117
|
+
renew?: ((parameters: {
|
|
118
|
+
/** Stable idempotency/reconciliation reference persisted before the renewal hook runs. */
|
|
119
|
+
inFlightReference: string;
|
|
120
|
+
periodIndex: number;
|
|
121
|
+
subscription: SubscriptionRecord;
|
|
122
|
+
}) => Promise<subscription.RenewalResult>) | undefined;
|
|
123
|
+
/** Store containing subscription records. */
|
|
124
|
+
store: Store.AtomicStore<Record<string, unknown>>;
|
|
125
|
+
/**
|
|
126
|
+
* Milliseconds before an in-flight renewal lock can be replaced.
|
|
127
|
+
* Keeps concurrent renewal safe while allowing recovery from abandoned attempts.
|
|
128
|
+
*/
|
|
129
|
+
renewalTimeoutMs?: number | undefined;
|
|
130
|
+
waitForConfirmation?: boolean | undefined;
|
|
131
|
+
} & Client.getResolver.Parameters;
|
|
132
|
+
/** Renewal result returned by {@link renew}. */
|
|
133
|
+
type Result = subscription.RenewalResult;
|
|
134
|
+
}
|
|
135
|
+
export declare namespace subscription {
|
|
136
|
+
/** Request-scoped lookup key used to find the active subscription. */
|
|
137
|
+
type ResolvedSubscription = SubscriptionLookup;
|
|
138
|
+
/** Activation result returned after the initial credential is verified. */
|
|
139
|
+
type ActivationResult = {
|
|
140
|
+
receipt: SubscriptionReceiptValue;
|
|
141
|
+
subscription: SubscriptionRecord;
|
|
142
|
+
};
|
|
143
|
+
/** Renewal result returned when an overdue subscription is charged. */
|
|
144
|
+
type RenewalResult = {
|
|
145
|
+
receipt: SubscriptionReceiptValue;
|
|
146
|
+
subscription: SubscriptionRecord;
|
|
147
|
+
};
|
|
148
|
+
/** Request defaults supported by the subscription method. */
|
|
149
|
+
type Defaults = LooseOmit<Method.RequestDefaults<typeof Methods.subscription>, 'accessKey' | 'recipient'>;
|
|
150
|
+
/** Parameters for configuring a Tempo subscription method. */
|
|
151
|
+
type Parameters = Account.resolve.Parameters & Client.getResolver.Parameters & {
|
|
152
|
+
accessKey?: ((parameters: {
|
|
153
|
+
input: Request;
|
|
154
|
+
request: SubscriptionRequest;
|
|
155
|
+
resolved: ResolvedSubscription;
|
|
156
|
+
}) => MaybePromise<SubscriptionAccessKey>) | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* Milliseconds before an in-flight activation lock can be replaced.
|
|
159
|
+
* Keeps concurrent activation safe while allowing recovery from abandoned attempts.
|
|
160
|
+
*/
|
|
161
|
+
activationTimeoutMs?: number | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Milliseconds before an in-flight renewal lock can be replaced.
|
|
164
|
+
* Keeps concurrent renewal safe while allowing recovery from abandoned attempts.
|
|
165
|
+
*/
|
|
166
|
+
renewalTimeoutMs?: number | undefined;
|
|
167
|
+
activate?: ((parameters: {
|
|
168
|
+
/** Custom activation must verify this access key matches the resolved subscription. */
|
|
169
|
+
accessKey: SubscriptionAccessKey;
|
|
170
|
+
credential: {
|
|
171
|
+
payload: SubscriptionCredentialPayload;
|
|
172
|
+
source?: string | undefined;
|
|
173
|
+
};
|
|
174
|
+
input: Request;
|
|
175
|
+
request: SubscriptionRequest;
|
|
176
|
+
resolved: ResolvedSubscription;
|
|
177
|
+
source: {
|
|
178
|
+
address: Address;
|
|
179
|
+
chainId: number;
|
|
180
|
+
} | null;
|
|
181
|
+
}) => Promise<ActivationResult>) | undefined;
|
|
182
|
+
hooks?: {
|
|
183
|
+
activated?: ((parameters: {
|
|
184
|
+
receipt: SubscriptionReceiptValue;
|
|
185
|
+
subscription: SubscriptionRecord;
|
|
186
|
+
}) => MaybePromise<void>) | undefined;
|
|
187
|
+
renewed?: ((parameters: {
|
|
188
|
+
periodIndex: number;
|
|
189
|
+
receipt: SubscriptionReceiptValue;
|
|
190
|
+
subscription: SubscriptionRecord;
|
|
191
|
+
}) => MaybePromise<void>) | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
periodCount?: Methods.SubscriptionPeriodCountInput | undefined;
|
|
194
|
+
periodUnit?: SubscriptionPeriodUnit | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* Resolves the request identity. This callback must authenticate and
|
|
197
|
+
* authorize the caller before returning a key; automatic mode may create
|
|
198
|
+
* a server-owned access key for that key while issuing a challenge.
|
|
199
|
+
*/
|
|
200
|
+
resolve: (parameters: {
|
|
201
|
+
input: Request;
|
|
202
|
+
request: SubscriptionRequest;
|
|
203
|
+
}) => MaybePromise<ResolvedSubscription | null>;
|
|
204
|
+
renew?: (parameters: {
|
|
205
|
+
/** Stable idempotency/reconciliation reference persisted before the renewal hook runs. */
|
|
206
|
+
inFlightReference: string;
|
|
207
|
+
periodIndex: number;
|
|
208
|
+
/** Custom renewal hooks must preserve amount, currency, recipient, period, expiry, and lookup key. */
|
|
209
|
+
subscription: SubscriptionRecord;
|
|
210
|
+
}) => Promise<RenewalResult>;
|
|
211
|
+
store?: Store.AtomicStore<Record<string, unknown>> | undefined;
|
|
212
|
+
testnet?: boolean | undefined;
|
|
213
|
+
waitForConfirmation?: boolean | undefined;
|
|
214
|
+
} & Defaults;
|
|
215
|
+
/** Derived defaults after account and chain configuration are applied. */
|
|
216
|
+
type DeriveDefaults<parameters extends Parameters> = types.DeriveDefaults<parameters, Defaults> & {
|
|
217
|
+
decimals: number;
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
export {};
|
|
221
|
+
//# sourceM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