@metamask/subscription-controller 8.1.0 → 9.0.1

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 (114) hide show
  1. package/CHANGELOG.md +26 -1
  2. package/dist/{SubscriptionController-method-action-types.d.mts → SubscriptionController-method-action-types.d.ts} +2 -2
  3. package/dist/SubscriptionController-method-action-types.d.ts.map +1 -0
  4. package/dist/{SubscriptionController-method-action-types.mjs → SubscriptionController-method-action-types.js} +1 -1
  5. package/dist/SubscriptionController-method-action-types.js.map +1 -0
  6. package/dist/{SubscriptionController.d.mts → SubscriptionController.d.ts} +18 -18
  7. package/dist/SubscriptionController.d.ts.map +1 -0
  8. package/dist/{SubscriptionController.mjs → SubscriptionController.js} +371 -274
  9. package/dist/SubscriptionController.js.map +1 -0
  10. package/dist/{SubscriptionService-method-action-types.d.cts → SubscriptionService-method-action-types.d.ts} +2 -2
  11. package/dist/SubscriptionService-method-action-types.d.ts.map +1 -0
  12. package/dist/{SubscriptionService-method-action-types.mjs → SubscriptionService-method-action-types.js} +1 -1
  13. package/dist/SubscriptionService-method-action-types.js.map +1 -0
  14. package/dist/{SubscriptionService-structs.d.cts → SubscriptionService-structs.d.ts} +164 -164
  15. package/dist/SubscriptionService-structs.d.ts.map +1 -0
  16. package/dist/{SubscriptionService-structs.mjs → SubscriptionService-structs.js} +4 -4
  17. package/dist/SubscriptionService-structs.js.map +1 -0
  18. package/dist/{SubscriptionService.d.cts → SubscriptionService.d.ts} +10 -10
  19. package/dist/SubscriptionService.d.ts.map +1 -0
  20. package/dist/{SubscriptionService.mjs → SubscriptionService.js} +141 -143
  21. package/dist/SubscriptionService.js.map +1 -0
  22. package/dist/{constants.d.cts → constants.d.ts} +1 -1
  23. package/dist/constants.d.ts.map +1 -0
  24. package/dist/{constants.mjs → constants.js} +3 -3
  25. package/dist/constants.js.map +1 -0
  26. package/dist/{errors.d.cts → errors.d.ts} +2 -2
  27. package/dist/errors.d.ts.map +1 -0
  28. package/dist/{errors.mjs → errors.js} +5 -1
  29. package/dist/errors.js.map +1 -0
  30. package/dist/{index.d.cts → index.d.ts} +12 -12
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/{index.mjs → index.js} +7 -7
  33. package/dist/index.js.map +1 -0
  34. package/dist/logger.d.ts +4 -0
  35. package/dist/logger.d.ts.map +1 -0
  36. package/dist/logger.js +5 -0
  37. package/dist/logger.js.map +1 -0
  38. package/dist/{selectors.d.mts → selectors.d.ts} +3 -3
  39. package/dist/selectors.d.ts.map +1 -0
  40. package/dist/{selectors.mjs → selectors.js} +2 -2
  41. package/dist/selectors.js.map +1 -0
  42. package/dist/{types.d.mts → types.d.ts} +47 -47
  43. package/dist/types.d.ts.map +1 -0
  44. package/dist/{types.mjs → types.js} +1 -1
  45. package/dist/types.js.map +1 -0
  46. package/package.json +19 -23
  47. package/dist/SubscriptionController-method-action-types.cjs +0 -7
  48. package/dist/SubscriptionController-method-action-types.cjs.map +0 -1
  49. package/dist/SubscriptionController-method-action-types.d.cts +0 -261
  50. package/dist/SubscriptionController-method-action-types.d.cts.map +0 -1
  51. package/dist/SubscriptionController-method-action-types.d.mts.map +0 -1
  52. package/dist/SubscriptionController-method-action-types.mjs.map +0 -1
  53. package/dist/SubscriptionController.cjs +0 -844
  54. package/dist/SubscriptionController.cjs.map +0 -1
  55. package/dist/SubscriptionController.d.cts +0 -268
  56. package/dist/SubscriptionController.d.cts.map +0 -1
  57. package/dist/SubscriptionController.d.mts.map +0 -1
  58. package/dist/SubscriptionController.mjs.map +0 -1
  59. package/dist/SubscriptionService-method-action-types.cjs +0 -7
  60. package/dist/SubscriptionService-method-action-types.cjs.map +0 -1
  61. package/dist/SubscriptionService-method-action-types.d.cts.map +0 -1
  62. package/dist/SubscriptionService-method-action-types.d.mts +0 -164
  63. package/dist/SubscriptionService-method-action-types.d.mts.map +0 -1
  64. package/dist/SubscriptionService-method-action-types.mjs.map +0 -1
  65. package/dist/SubscriptionService-structs.cjs +0 -209
  66. package/dist/SubscriptionService-structs.cjs.map +0 -1
  67. package/dist/SubscriptionService-structs.d.cts.map +0 -1
  68. package/dist/SubscriptionService-structs.d.mts +0 -889
  69. package/dist/SubscriptionService-structs.d.mts.map +0 -1
  70. package/dist/SubscriptionService-structs.mjs.map +0 -1
  71. package/dist/SubscriptionService.cjs +0 -497
  72. package/dist/SubscriptionService.cjs.map +0 -1
  73. package/dist/SubscriptionService.d.cts.map +0 -1
  74. package/dist/SubscriptionService.d.mts +0 -155
  75. package/dist/SubscriptionService.d.mts.map +0 -1
  76. package/dist/SubscriptionService.mjs.map +0 -1
  77. package/dist/constants.cjs +0 -74
  78. package/dist/constants.cjs.map +0 -1
  79. package/dist/constants.d.cts.map +0 -1
  80. package/dist/constants.d.mts +0 -50
  81. package/dist/constants.d.mts.map +0 -1
  82. package/dist/constants.mjs.map +0 -1
  83. package/dist/errors.cjs +0 -72
  84. package/dist/errors.cjs.map +0 -1
  85. package/dist/errors.d.cts.map +0 -1
  86. package/dist/errors.d.mts +0 -34
  87. package/dist/errors.d.mts.map +0 -1
  88. package/dist/errors.mjs.map +0 -1
  89. package/dist/index.cjs +0 -35
  90. package/dist/index.cjs.map +0 -1
  91. package/dist/index.d.cts.map +0 -1
  92. package/dist/index.d.mts +0 -12
  93. package/dist/index.d.mts.map +0 -1
  94. package/dist/index.mjs.map +0 -1
  95. package/dist/logger.cjs +0 -8
  96. package/dist/logger.cjs.map +0 -1
  97. package/dist/logger.d.cts +0 -5
  98. package/dist/logger.d.cts.map +0 -1
  99. package/dist/logger.d.mts +0 -5
  100. package/dist/logger.d.mts.map +0 -1
  101. package/dist/logger.mjs +0 -5
  102. package/dist/logger.mjs.map +0 -1
  103. package/dist/selectors.cjs +0 -52
  104. package/dist/selectors.cjs.map +0 -1
  105. package/dist/selectors.d.cts +0 -38
  106. package/dist/selectors.d.cts.map +0 -1
  107. package/dist/selectors.d.mts.map +0 -1
  108. package/dist/selectors.mjs.map +0 -1
  109. package/dist/types.cjs +0 -100
  110. package/dist/types.cjs.map +0 -1
  111. package/dist/types.d.cts +0 -645
  112. package/dist/types.d.cts.map +0 -1
  113. package/dist/types.d.mts.map +0 -1
  114. package/dist/types.mjs.map +0 -1
package/dist/types.d.cts DELETED
@@ -1,645 +0,0 @@
1
- import type { TransactionMeta } from "@metamask/transaction-controller";
2
- import type { CaipAccountId, Hex } from "@metamask/utils";
3
- /**
4
- * Error response from the Subscription API.
5
- */
6
- export type SubscriptionApiError = {
7
- errorCode?: string;
8
- message?: string;
9
- statusCode?: number;
10
- };
11
- /**
12
- * Supported subscription products.
13
- */
14
- export declare const PRODUCT_TYPES: {
15
- /**
16
- * MetaMask Shield.
17
- */
18
- readonly SHIELD: "shield";
19
- /**
20
- * Money Account Plus (delegation-based crypto billing).
21
- */
22
- readonly MONEY_ACCOUNT_PLUS: "money_account_plus";
23
- };
24
- export type ProductType = (typeof PRODUCT_TYPES)[keyof typeof PRODUCT_TYPES];
25
- export declare const MoneyAccountFeature: {
26
- readonly SwapFeeWaiver: "swapFeeWaiver";
27
- readonly PerpsFeeWaiver: "perpsFeeWaiver";
28
- readonly PredictFreeTx: "predictFreeTx";
29
- readonly PremiumApy: "premiumApy";
30
- };
31
- export type MoneyAccountFeature = (typeof MoneyAccountFeature)[keyof typeof MoneyAccountFeature];
32
- export type MoneyAccountEntitlements = Record<MoneyAccountFeature, boolean>;
33
- export declare const ShieldFeature: {
34
- readonly ShieldClaim: "shieldClaim";
35
- readonly PrioritySupport: "prioritySupport";
36
- };
37
- export type ShieldFeature = (typeof ShieldFeature)[keyof typeof ShieldFeature];
38
- export type ShieldEntitlements = Record<ShieldFeature, boolean>;
39
- export type MoneyAccountPlusClaim = {
40
- plan: string;
41
- entitlements: MoneyAccountEntitlements;
42
- };
43
- export type ProductEntitlements = {
44
- [PRODUCT_TYPES.SHIELD]?: {
45
- entitlements: ShieldEntitlements;
46
- };
47
- [PRODUCT_TYPES.MONEY_ACCOUNT_PLUS]?: MoneyAccountPlusClaim;
48
- };
49
- export type ProductEntitlementFeatureMap = {
50
- [PRODUCT_TYPES.SHIELD]: ShieldFeature;
51
- [PRODUCT_TYPES.MONEY_ACCOUNT_PLUS]: MoneyAccountFeature;
52
- };
53
- /**
54
- * How a crypto subscription is authorized.
55
- *
56
- * Use `erc20_approval` with `rawTransaction` (e.g. Shield). Use `delegation`
57
- * with `delegationHash` (e.g. Money Account Plus).
58
- */
59
- export declare const CRYPTO_AUTH_METHODS: {
60
- /**
61
- * User signs an ERC-20 approve transaction.
62
- */
63
- readonly ERC20_APPROVAL: "erc20_approval";
64
- /**
65
- * User authorizes via a stored delegation hash.
66
- */
67
- readonly DELEGATION: "delegation";
68
- };
69
- export type CryptoAuthMethod = (typeof CRYPTO_AUTH_METHODS)[keyof typeof CRYPTO_AUTH_METHODS];
70
- export declare const PAYMENT_TYPES: {
71
- readonly byCard: "card";
72
- readonly byCrypto: "crypto";
73
- };
74
- export type PaymentType = (typeof PAYMENT_TYPES)[keyof typeof PAYMENT_TYPES];
75
- export declare const RECURRING_INTERVALS: {
76
- readonly month: "month";
77
- readonly year: "year";
78
- };
79
- export type RecurringInterval = (typeof RECURRING_INTERVALS)[keyof typeof RECURRING_INTERVALS];
80
- export declare const SUBSCRIPTION_STATUSES: {
81
- readonly incomplete: "incomplete";
82
- readonly incompleteExpired: "incomplete_expired";
83
- readonly provisional: "provisional";
84
- readonly trialing: "trialing";
85
- readonly active: "active";
86
- readonly pastDue: "past_due";
87
- readonly unpaid: "unpaid";
88
- readonly canceled: "canceled";
89
- readonly paused: "paused";
90
- };
91
- export type SubscriptionStatus = (typeof SUBSCRIPTION_STATUSES)[keyof typeof SUBSCRIPTION_STATUSES];
92
- export declare const CANCEL_TYPES: {
93
- readonly ALLOWED_IMMEDIATE: "allowed_immediate";
94
- readonly ALLOWED_AT_PERIOD_END: "allowed_at_period_end";
95
- readonly NOT_ALLOWED: "not_allowed";
96
- readonly NOT_ALLOWED_PENDING_VERIFICATION: "not_allowed_pending_verification";
97
- };
98
- export type CancelType = (typeof CANCEL_TYPES)[keyof typeof CANCEL_TYPES];
99
- export declare const CRYPTO_PAYMENT_METHOD_ERRORS: {
100
- readonly APPROVAL_TRANSACTION_TOO_OLD: "approval_transaction_too_old";
101
- readonly APPROVAL_TRANSACTION_REVERTED: "approval_transaction_reverted";
102
- readonly APPROVAL_TRANSACTION_MAX_VERIFICATION_ATTEMPTS_REACHED: "approval_transaction_max_verification_attempts_reached";
103
- readonly INSUFFICIENT_BALANCE: "insufficient_balance";
104
- readonly INSUFFICIENT_ALLOWANCE: "insufficient_allowance";
105
- };
106
- export type CryptoPaymentMethodError = (typeof CRYPTO_PAYMENT_METHOD_ERRORS)[keyof typeof CRYPTO_PAYMENT_METHOD_ERRORS];
107
- export declare const MODAL_TYPE: {
108
- readonly A: "A";
109
- readonly B: "B";
110
- };
111
- export type ModalType = (typeof MODAL_TYPE)[keyof typeof MODAL_TYPE];
112
- /** only usd for now */
113
- export type Currency = 'usd';
114
- export type Product = {
115
- name: ProductType;
116
- currency: Currency;
117
- unitAmount: number;
118
- unitDecimals: number;
119
- };
120
- export type Subscription = {
121
- id: string;
122
- products: Product[];
123
- currentPeriodStart: string;
124
- currentPeriodEnd: string;
125
- /** is subscription scheduled for cancellation */
126
- cancelAtPeriodEnd?: boolean;
127
- status: SubscriptionStatus;
128
- interval: RecurringInterval;
129
- paymentMethod: SubscriptionPaymentMethod;
130
- trialPeriodDays?: number;
131
- trialStart?: string;
132
- trialEnd?: string;
133
- /** Crypto payment only: next billing cycle date (e.g after 12 months) */
134
- endDate?: string;
135
- /** The date the subscription was canceled. */
136
- canceledAt?: string;
137
- /** The cancellation type indicating what cancellation options are available for this subscription. */
138
- cancelType: CancelType;
139
- /** The date the subscription was marked as inactive (paused/past_due/canceled). */
140
- inactiveAt?: string;
141
- /** Whether the user is eligible for support features (priority support and filing claims). True for active subscriptions and inactive subscriptions within grace period. */
142
- isEligibleForSupport: boolean;
143
- billingCycles?: number;
144
- };
145
- export type SubscriptionCardPaymentMethod = {
146
- type: Extract<PaymentType, 'card'>;
147
- card: {
148
- brand: string;
149
- /** display brand account for dual brand card */
150
- displayBrand: string;
151
- last4: string;
152
- };
153
- };
154
- export type SubscriptionCryptoPaymentMethod = {
155
- type: Extract<PaymentType, 'crypto'>;
156
- crypto: {
157
- payerAddress: Hex;
158
- chainId: Hex;
159
- tokenSymbol: string;
160
- error?: CryptoPaymentMethodError;
161
- };
162
- };
163
- export type SubscriptionPaymentMethod = SubscriptionCardPaymentMethod | SubscriptionCryptoPaymentMethod;
164
- export type GetSubscriptionsResponse = {
165
- customerId?: string;
166
- subscriptions: Subscription[];
167
- trialedProducts: ProductType[];
168
- productEntitlements?: ProductEntitlements;
169
- /** The last subscription that user has subscribed to if any. */
170
- lastSubscription?: Subscription;
171
- /** The reward account ID if user has linked rewards to the subscription. */
172
- rewardAccountId?: CaipAccountId;
173
- };
174
- /**
175
- * Benefits available to a subscription user.
176
- */
177
- export type SwapsBenefitUsage = {
178
- feeBips: string | null;
179
- capMicroUsd?: number;
180
- consumedMicroUsd?: number;
181
- remainingMicroUsd: number | null;
182
- exhausted: boolean;
183
- };
184
- export type PerpsBenefitUsage = {
185
- builderFeeBips: string | null;
186
- builderCode: string | null;
187
- capMicroUsd?: number;
188
- consumedMicroUsd?: number;
189
- remainingMicroUsd: number | null;
190
- exhausted: boolean;
191
- };
192
- export type PredictBenefitUsage = {
193
- builderCode: string | null;
194
- capTxCount?: number;
195
- consumedTxCount?: number;
196
- remainingTxCount: number | null;
197
- exhausted: boolean;
198
- };
199
- type SubscriptionBenefitsProducts = {
200
- swaps: SwapsBenefitUsage;
201
- perps: PerpsBenefitUsage;
202
- predict: PredictBenefitUsage;
203
- };
204
- export type SubscriptionBenefitsResponse = {
205
- eligible: boolean;
206
- billingPeriodId: string | null;
207
- products: SubscriptionBenefitsProducts;
208
- };
209
- /**
210
- * Benefits state exposed to the UI.
211
- */
212
- export type SubscriptionBenefitsState = SubscriptionBenefitsProducts & {
213
- billingPeriodId: string | null;
214
- };
215
- export type StartSubscriptionRequest = {
216
- products: ProductType[];
217
- isTrialRequested: boolean;
218
- recurringInterval: RecurringInterval;
219
- successUrl?: string;
220
- cancelUrl?: string;
221
- useTestClock?: boolean;
222
- /**
223
- * Optional CAIP account ID of the rewards account to opt in alongside this
224
- * subscription. Required when the user wants to link rewards during
225
- * subscription creation.
226
- *
227
- * @example {
228
- * rewardAccountId: 'eip155:1:0x1234567890123456789012345678901234567890',
229
- * }
230
- */
231
- rewardAccountId?: CaipAccountId;
232
- };
233
- export type StartSubscriptionResponse = {
234
- checkoutSessionUrl: string;
235
- };
236
- type StartCryptoSubscriptionRequestBase = {
237
- products: ProductType[];
238
- isTrialRequested: boolean;
239
- recurringInterval: RecurringInterval;
240
- billingCycles: number;
241
- chainId: Hex;
242
- payerAddress: Hex;
243
- /**
244
- * e.g. "USDC"
245
- */
246
- tokenSymbol: string;
247
- isSponsored?: boolean;
248
- useTestClock?: boolean;
249
- /**
250
- * Optional CAIP account ID of the rewards account to opt in alongside this
251
- * subscription. Required when the user wants to link rewards during
252
- * subscription creation.
253
- *
254
- * @example {
255
- * rewardAccountId: 'eip155:1:0x1234567890123456789012345678901234567890',
256
- * }
257
- */
258
- rewardAccountId?: CaipAccountId;
259
- };
260
- /**
261
- * ERC-20 approval crypto subscription request (e.g. Shield).
262
- *
263
- * `cryptoAuthMethod` defaults to `CRYPTO_AUTH_METHODS.ERC20_APPROVAL` when
264
- * omitted.
265
- */
266
- export type StartErc20CryptoSubscriptionRequest = StartCryptoSubscriptionRequestBase & {
267
- cryptoAuthMethod?: typeof CRYPTO_AUTH_METHODS.ERC20_APPROVAL;
268
- rawTransaction: Hex;
269
- delegationHash?: never;
270
- };
271
- /**
272
- * Delegation-based crypto subscription request (e.g. Money Account Plus).
273
- */
274
- export type StartDelegationCryptoSubscriptionRequest = StartCryptoSubscriptionRequestBase & {
275
- cryptoAuthMethod: typeof CRYPTO_AUTH_METHODS.DELEGATION;
276
- delegationHash: Hex;
277
- rawTransaction?: never;
278
- };
279
- /**
280
- * Request to start a crypto subscription.
281
- *
282
- * Discriminated union of ERC-20 approval vs delegation. Provide
283
- * `rawTransaction` for ERC-20 approval (the default when `cryptoAuthMethod` is
284
- * omitted), or `delegationHash` with `cryptoAuthMethod: 'delegation'`.
285
- * Combining or omitting both is a type error, and is also rejected at runtime
286
- * by `startSubscriptionWithCrypto`.
287
- */
288
- export type StartCryptoSubscriptionRequest = StartErc20CryptoSubscriptionRequest | StartDelegationCryptoSubscriptionRequest;
289
- export type StartCryptoSubscriptionResponse = {
290
- subscriptionId: string;
291
- status: SubscriptionStatus;
292
- };
293
- /**
294
- * General response type for the subscription API requests
295
- * which doesn't require any specific response data.
296
- */
297
- export type SubscriptionApiGeneralResponse = {
298
- /**
299
- * Whether the request was successful.
300
- */
301
- success: boolean;
302
- /**
303
- * The message of the response.
304
- */
305
- message?: string;
306
- };
307
- export type CancelSubscriptionRequest = {
308
- subscriptionId: string;
309
- /** Whether to cancel at the end of the current period */
310
- cancelAtPeriodEnd?: boolean;
311
- };
312
- export type AuthUtils = {
313
- getAccessToken: () => Promise<string>;
314
- };
315
- export type ProductPrice = {
316
- interval: RecurringInterval;
317
- unitAmount: number;
318
- unitDecimals: number;
319
- /** only usd for now */
320
- currency: Currency;
321
- trialPeriodDays: number;
322
- /** min billing cycles for approval */
323
- minBillingCycles: number;
324
- /** min billing cycles for account balance check */
325
- minBillingCyclesForBalance: number;
326
- };
327
- export type ProductPricing = {
328
- name: ProductType;
329
- prices: ProductPrice[];
330
- };
331
- type TokenPaymentInfoBase = {
332
- symbol: string;
333
- address: Hex;
334
- decimals: number;
335
- /**
336
- * example: {
337
- usd: '1.0',
338
- },
339
- */
340
- conversionRate?: {
341
- usd: string;
342
- };
343
- /**
344
- * Source tokens that can be converted into this settlement token.
345
- */
346
- sources?: TokenPaymentInfo[];
347
- };
348
- /**
349
- * Spot (non-vault) settlement token. Priced via `conversionRate` when provided.
350
- * `accountantAddress` is not present on this variant.
351
- */
352
- export type SpotTokenPaymentInfo = TokenPaymentInfoBase & {
353
- isVaultShare?: false;
354
- };
355
- /**
356
- * Yield-bearing vault share priced via an accountant rate.
357
- */
358
- export type VaultTokenPaymentInfo = TokenPaymentInfoBase & {
359
- isVaultShare: true;
360
- /**
361
- * Veda accountant address used to value this vault share.
362
- */
363
- accountantAddress: Hex;
364
- };
365
- /**
366
- * A settlement token in a pricing chain. Discriminated by `isVaultShare`:
367
- * vault shares require `accountantAddress`; spot tokens omit it.
368
- */
369
- export type TokenPaymentInfo = SpotTokenPaymentInfo | VaultTokenPaymentInfo;
370
- export type ChainPaymentInfo = {
371
- chainId: Hex;
372
- paymentAddress: Hex;
373
- /**
374
- * Delegate address clients authorize when using the delegation auth method.
375
- */
376
- delegateAddress?: Hex;
377
- tokens: TokenPaymentInfo[];
378
- /**
379
- * Whether the chain supports sponsorship for the trialed subscription approval transaction.
380
- * This is used to determine if the user can be sponsored for the gas fees for the trialed subscription approval transaction.
381
- */
382
- isSponsorshipSupported?: boolean;
383
- };
384
- export type PricingCardPaymentMethod = {
385
- type: Extract<PaymentType, 'card'>;
386
- /**
387
- * Products that support this payment method.
388
- */
389
- products?: ProductType[];
390
- };
391
- export type PricingCryptoPaymentMethod = {
392
- type: Extract<PaymentType, 'crypto'>;
393
- /**
394
- * Crypto authorization method. Omitted together with `products` on persisted
395
- * pre-multi-product pricing rows; those rows are treated as Shield + `erc20_approval`.
396
- * If `products` is set, this field must be explicit.
397
- */
398
- cryptoAuthMethod?: CryptoAuthMethod;
399
- /**
400
- * Products that support this payment method. Omitted together with
401
- * `cryptoAuthMethod` on persisted pre-multi-product pricing rows (treated as Shield).
402
- * If present, must be non-empty and paired with an explicit `cryptoAuthMethod`.
403
- */
404
- products?: ProductType[];
405
- chains?: ChainPaymentInfo[];
406
- };
407
- /**
408
- * A pricing payment-method row. Discriminated by `type`: card rows have no
409
- * crypto fields; crypto rows may include `cryptoAuthMethod` and `chains`.
410
- */
411
- export type PricingPaymentMethod = PricingCardPaymentMethod | PricingCryptoPaymentMethod;
412
- export type PricingResponse = {
413
- products: ProductPricing[];
414
- paymentMethods: PricingPaymentMethod[];
415
- };
416
- export type GetCryptoApproveTransactionRequest = {
417
- /**
418
- * payment chain ID
419
- */
420
- chainId: Hex;
421
- /**
422
- * Payment token address
423
- */
424
- paymentTokenAddress: Hex;
425
- productType: ProductType;
426
- interval: RecurringInterval;
427
- };
428
- export type GetCryptoApproveTransactionResponse = {
429
- /**
430
- * The amount to approve
431
- * e.g: "100000000"
432
- */
433
- approveAmount: string;
434
- /**
435
- * The contract address (spender)
436
- */
437
- paymentAddress: Hex;
438
- /**
439
- * The payment token address
440
- */
441
- paymentTokenAddress: Hex;
442
- chainId: Hex;
443
- };
444
- /**
445
- * Request to submit a Shield ERC-20 crypto approval transaction.
446
- */
447
- export type SubmitSubscriptionCryptoApprovalRequest = {
448
- /**
449
- * The subscription product. Typed as `typeof PRODUCT_TYPES.SHIELD` only at
450
- * the moment (future might support more product).
451
- */
452
- productType: typeof PRODUCT_TYPES.SHIELD;
453
- /**
454
- * The transaction metadata. Must have type
455
- * `TransactionType.shieldSubscriptionApprove`.
456
- */
457
- txMeta: TransactionMeta;
458
- /**
459
- * Whether the transaction is sponsored.
460
- */
461
- isSponsored?: boolean;
462
- /**
463
- * The account ID of the reward subscription to link.
464
- */
465
- rewardAccountId?: CaipAccountId;
466
- };
467
- export declare const COHORT_NAMES: {
468
- readonly POST_TX: "post_tx";
469
- readonly WALLET_HOME: "wallet_home";
470
- };
471
- export type CohortName = (typeof COHORT_NAMES)[keyof typeof COHORT_NAMES];
472
- export declare const BALANCE_CATEGORIES: {
473
- readonly RANGE_0_99: "0-99";
474
- readonly RANGE_100_999: "100-999";
475
- readonly RANGE_1K_9_9K: "1k-9.9k";
476
- readonly RANGE_10K_99_9K: "10k-99.9k";
477
- readonly RANGE_100K_999_9K: "100k-999.9k";
478
- readonly RANGE_1M_PLUS: "1M+";
479
- };
480
- export type BalanceCategory = (typeof BALANCE_CATEGORIES)[keyof typeof BALANCE_CATEGORIES];
481
- export type Cohort = {
482
- cohort: string;
483
- eligibilityRate: number;
484
- priority: number;
485
- eligible: boolean;
486
- };
487
- export type SubscriptionEligibility = {
488
- product: ProductType;
489
- canSubscribe: boolean;
490
- canViewEntryModal: boolean;
491
- modalType?: ModalType;
492
- cohorts: Cohort[];
493
- assignedCohort: string | null;
494
- hasAssignedCohortExpired: boolean;
495
- };
496
- export declare const SubscriptionUserEvent: {
497
- readonly ShieldEntryModalViewed: "shield_entry_modal_viewed";
498
- readonly ShieldCohortAssigned: "shield_cohort_assigned";
499
- };
500
- export type SubscriptionUserEventType = (typeof SubscriptionUserEvent)[keyof typeof SubscriptionUserEvent];
501
- export type SubmitUserEventRequest = {
502
- event: SubscriptionUserEventType;
503
- cohort?: string;
504
- };
505
- export type AssignCohortRequest = {
506
- cohort: string;
507
- };
508
- export type GetSubscriptionsEligibilitiesRequest = {
509
- balanceCategory?: BalanceCategory;
510
- };
511
- /**
512
- * Request object for submitting sponsorship intents.
513
- */
514
- export type SubmitSponsorshipIntentsRequest = {
515
- chainId: Hex;
516
- address: Hex;
517
- products: ProductType[];
518
- paymentTokenSymbol: string;
519
- recurringInterval: RecurringInterval;
520
- billingCycles: number;
521
- };
522
- export type SubmitSponsorshipIntentsMethodParams = Pick<SubmitSponsorshipIntentsRequest, 'chainId' | 'address' | 'products'>;
523
- export type ISubscriptionService = {
524
- getSubscriptions(): Promise<GetSubscriptionsResponse>;
525
- getBenefits(): Promise<SubscriptionBenefitsResponse>;
526
- cancelSubscription(request: CancelSubscriptionRequest): Promise<Subscription>;
527
- unCancelSubscription(request: {
528
- subscriptionId: string;
529
- }): Promise<Subscription>;
530
- /**
531
- * Starts a card-paid subscription checkout session for the requested products
532
- * (e.g. Shield or Money Account Plus).
533
- *
534
- * @param request - The start subscription request.
535
- * @returns The checkout session response.
536
- */
537
- startSubscriptionWithCard(request: StartSubscriptionRequest): Promise<StartSubscriptionResponse>;
538
- getBillingPortalUrl(): Promise<BillingPortalResponse>;
539
- getPricing(): Promise<PricingResponse>;
540
- startSubscriptionWithCrypto(request: StartCryptoSubscriptionRequest): Promise<StartCryptoSubscriptionResponse>;
541
- updatePaymentMethodCard(request: UpdatePaymentMethodCardRequest): Promise<UpdatePaymentMethodCardResponse>;
542
- updatePaymentMethodCrypto(request: UpdatePaymentMethodCryptoRequest): Promise<void>;
543
- getSubscriptionsEligibilities(request?: GetSubscriptionsEligibilitiesRequest): Promise<SubscriptionEligibility[]>;
544
- submitUserEvent(request: SubmitUserEventRequest): Promise<void>;
545
- assignUserToCohort(request: AssignCohortRequest): Promise<void>;
546
- /**
547
- * Link rewards to a subscription.
548
- */
549
- linkRewards(request: LinkRewardsRequest): Promise<SubscriptionApiGeneralResponse>;
550
- /**
551
- * Submit sponsorship intents to the Subscription Service backend.
552
- *
553
- * This is intended to be used together with the crypto subscription flow.
554
- * When the user has enabled the smart transaction feature, we will sponsor the gas fees for the subscription approval transaction.
555
- *
556
- * @param request - Request object containing the address and products.
557
- * @example {
558
- * address: '0x1234567890123456789012345678901234567890',
559
- * products: [ProductType.Shield],
560
- * recurringInterval: RecurringInterval.Month,
561
- * billingCycles: 1,
562
- * }
563
- */
564
- submitSponsorshipIntents(request: SubmitSponsorshipIntentsRequest): Promise<void>;
565
- };
566
- export type UpdatePaymentMethodOpts = ({
567
- paymentType: Extract<PaymentType, 'card'>;
568
- } & UpdatePaymentMethodCardRequest) | ({
569
- paymentType: Extract<PaymentType, 'crypto'>;
570
- } & UpdatePaymentMethodCryptoRequest);
571
- export type UpdatePaymentMethodCardRequest = {
572
- /**
573
- * Subscription ID
574
- */
575
- subscriptionId: string;
576
- /**
577
- * Recurring interval
578
- */
579
- recurringInterval: RecurringInterval;
580
- successUrl?: string;
581
- cancelUrl?: string;
582
- };
583
- export type UpdatePaymentMethodCardResponse = {
584
- redirectUrl: string;
585
- };
586
- export type UpdatePaymentMethodCryptoRequest = {
587
- subscriptionId: string;
588
- chainId: Hex;
589
- payerAddress: Hex;
590
- tokenSymbol: string;
591
- /**
592
- * The raw transaction to pay for the subscription
593
- * Can be empty if retry after topping up balance
594
- */
595
- rawTransaction?: Hex;
596
- recurringInterval: RecurringInterval;
597
- billingCycles: number;
598
- };
599
- export type BillingPortalResponse = {
600
- url: string;
601
- };
602
- /**
603
- * The cached result of last selected payment methods for the user.
604
- * These details are being cached to be used internally to track the last selected payment method for the user. (e.g. for crypto subscriptions)
605
- */
606
- export type CachedLastSelectedPaymentMethod = {
607
- type: PaymentType;
608
- paymentTokenAddress?: Hex;
609
- paymentTokenSymbol?: string;
610
- plan: RecurringInterval;
611
- useTestClock?: boolean;
612
- /**
613
- * Crypto authorization method. Omitted on persisted cache entries written
614
- * before this field existed; treat as `erc20_approval` when missing.
615
- */
616
- cryptoAuthMethod?: CryptoAuthMethod;
617
- };
618
- /**
619
- * Request to cache the last selected payment method for a product.
620
- */
621
- export type CacheLastSelectedPaymentMethodRequest = {
622
- /**
623
- * The product to cache the payment method for.
624
- */
625
- product: ProductType;
626
- /**
627
- * The payment method to cache.
628
- */
629
- paymentMethod: CachedLastSelectedPaymentMethod;
630
- };
631
- /**
632
- * Request object for linking rewards to a subscription.
633
- */
634
- export type LinkRewardsRequest = {
635
- /**
636
- * The ID of the reward subscription to be linked to the subscription.
637
- *
638
- * @example {
639
- * rewardAccountId: 'eip155:1:0x1234567890123456789012345678901234567890',
640
- * }
641
- */
642
- rewardAccountId: CaipAccountId;
643
- };
644
- export {};
645
- //# sourceMappingURL=types.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,yCAAyC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,wBAAwB;AAE1D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAA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