@metamask/subscription-controller 8.0.1 → 9.0.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 (110) hide show
  1. package/CHANGELOG.md +38 -1
  2. package/dist/{SubscriptionController-method-action-types.d.mts → SubscriptionController-method-action-types.d.ts} +14 -3
  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} +29 -19
  7. package/dist/SubscriptionController.d.ts.map +1 -0
  8. package/dist/{SubscriptionController.mjs → SubscriptionController.js} +391 -190
  9. package/dist/SubscriptionController.js.map +1 -0
  10. package/dist/{SubscriptionService-method-action-types.d.mts → SubscriptionService-method-action-types.d.ts} +12 -3
  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.mts → SubscriptionService-structs.d.ts} +302 -134
  15. package/dist/SubscriptionService-structs.d.ts.map +1 -0
  16. package/dist/{SubscriptionService-structs.mjs → SubscriptionService-structs.js} +55 -4
  17. package/dist/SubscriptionService-structs.js.map +1 -0
  18. package/dist/{SubscriptionService.d.cts → SubscriptionService.d.ts} +16 -10
  19. package/dist/SubscriptionService.d.ts.map +1 -0
  20. package/dist/{SubscriptionService.mjs → SubscriptionService.js} +159 -141
  21. package/dist/SubscriptionService.js.map +1 -0
  22. package/dist/{constants.d.cts → constants.d.ts} +2 -1
  23. package/dist/constants.d.ts.map +1 -0
  24. package/dist/{constants.mjs → constants.js} +4 -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.ts +12 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +7 -0
  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.ts +38 -0
  39. package/dist/selectors.d.ts.map +1 -0
  40. package/dist/selectors.js +46 -0
  41. package/dist/selectors.js.map +1 -0
  42. package/dist/{types.d.mts → types.d.ts} +112 -41
  43. package/dist/types.d.ts.map +1 -0
  44. package/dist/{types.mjs → types.js} +11 -1
  45. package/dist/types.js.map +1 -0
  46. package/package.json +22 -25
  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 -250
  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 -744
  54. package/dist/SubscriptionController.cjs.map +0 -1
  55. package/dist/SubscriptionController.d.cts +0 -258
  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 +0 -155
  62. package/dist/SubscriptionService-method-action-types.d.cts.map +0 -1
  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 -158
  66. package/dist/SubscriptionService-structs.cjs.map +0 -1
  67. package/dist/SubscriptionService-structs.d.cts +0 -721
  68. package/dist/SubscriptionService-structs.d.cts.map +0 -1
  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 -477
  72. package/dist/SubscriptionService.cjs.map +0 -1
  73. package/dist/SubscriptionService.d.cts.map +0 -1
  74. package/dist/SubscriptionService.d.mts +0 -149
  75. package/dist/SubscriptionService.d.mts.map +0 -1
  76. package/dist/SubscriptionService.mjs.map +0 -1
  77. package/dist/constants.cjs +0 -73
  78. package/dist/constants.cjs.map +0 -1
  79. package/dist/constants.d.cts.map +0 -1
  80. package/dist/constants.d.mts +0 -49
  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 -29
  90. package/dist/index.cjs.map +0 -1
  91. package/dist/index.d.cts +0 -11
  92. package/dist/index.d.cts.map +0 -1
  93. package/dist/index.d.mts +0 -11
  94. package/dist/index.d.mts.map +0 -1
  95. package/dist/index.mjs +0 -6
  96. package/dist/index.mjs.map +0 -1
  97. package/dist/logger.cjs +0 -8
  98. package/dist/logger.cjs.map +0 -1
  99. package/dist/logger.d.cts +0 -5
  100. package/dist/logger.d.cts.map +0 -1
  101. package/dist/logger.d.mts +0 -5
  102. package/dist/logger.d.mts.map +0 -1
  103. package/dist/logger.mjs +0 -5
  104. package/dist/logger.mjs.map +0 -1
  105. package/dist/types.cjs +0 -90
  106. package/dist/types.cjs.map +0 -1
  107. package/dist/types.d.cts +0 -574
  108. package/dist/types.d.cts.map +0 -1
  109. package/dist/types.d.mts.map +0 -1
  110. package/dist/types.mjs.map +0 -1
@@ -1,16 +1,17 @@
1
- import type { Struct } from "@metamask/superstruct";
2
- import type { TokenPaymentInfo } from "./types.mjs";
1
+ import type { Struct } from '@metamask/superstruct';
2
+ import type { TokenPaymentInfo } from './types.js';
3
3
  export declare const SubscriptionStruct: Struct<{
4
4
  id: string;
5
5
  products: {
6
- name: "shield" | "money_account_plus";
6
+ name: "money_account_plus" | "shield";
7
7
  currency: "usd";
8
8
  unitAmount: number;
9
9
  unitDecimals: number;
10
10
  }[];
11
11
  currentPeriodStart: string;
12
12
  currentPeriodEnd: string;
13
- status: "incomplete" | "incomplete_expired" | "provisional" | "trialing" | "active" | "past_due" | "unpaid" | "canceled" | "paused";
13
+ cancelAtPeriodEnd?: boolean | undefined;
14
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
14
15
  interval: "month" | "year";
15
16
  paymentMethod: {
16
17
  type: "card";
@@ -22,38 +23,37 @@ export declare const SubscriptionStruct: Struct<{
22
23
  } | {
23
24
  type: "crypto";
24
25
  crypto: {
25
- chainId: `0x${string}`;
26
26
  payerAddress: `0x${string}`;
27
+ chainId: `0x${string}`;
27
28
  tokenSymbol: string;
28
- error?: "approval_transaction_too_old" | "approval_transaction_reverted" | "approval_transaction_max_verification_attempts_reached" | "insufficient_balance" | "insufficient_allowance" | undefined;
29
+ error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
29
30
  };
30
31
  };
31
- cancelType: "allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification";
32
- isEligibleForSupport: boolean;
33
- billingCycles?: number | undefined;
34
- cancelAtPeriodEnd?: boolean | undefined;
35
32
  trialPeriodDays?: number | undefined;
36
33
  trialStart?: string | undefined;
37
34
  trialEnd?: string | undefined;
38
35
  endDate?: string | undefined;
39
36
  canceledAt?: string | undefined;
37
+ cancelType: "allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification";
40
38
  inactiveAt?: string | undefined;
39
+ isEligibleForSupport: boolean;
40
+ billingCycles?: number | undefined;
41
41
  }, {
42
42
  id: Struct<string, null>;
43
43
  products: Struct<{
44
- name: "shield" | "money_account_plus";
44
+ name: "money_account_plus" | "shield";
45
45
  currency: "usd";
46
46
  unitAmount: number;
47
47
  unitDecimals: number;
48
48
  }[], Struct<{
49
- name: "shield" | "money_account_plus";
49
+ name: "money_account_plus" | "shield";
50
50
  currency: "usd";
51
51
  unitAmount: number;
52
52
  unitDecimals: number;
53
53
  }, {
54
- name: Struct<"shield" | "money_account_plus", {
55
- shield: "shield";
54
+ name: Struct<"money_account_plus" | "shield", {
56
55
  money_account_plus: "money_account_plus";
56
+ shield: "shield";
57
57
  }>;
58
58
  currency: Struct<"usd", {
59
59
  usd: "usd";
@@ -64,16 +64,16 @@ export declare const SubscriptionStruct: Struct<{
64
64
  currentPeriodStart: Struct<string, null>;
65
65
  currentPeriodEnd: Struct<string, null>;
66
66
  cancelAtPeriodEnd: Struct<boolean | undefined, null>;
67
- status: Struct<"incomplete" | "incomplete_expired" | "provisional" | "trialing" | "active" | "past_due" | "unpaid" | "canceled" | "paused", {
67
+ status: Struct<"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid", {
68
+ active: "active";
69
+ canceled: "canceled";
68
70
  incomplete: "incomplete";
69
71
  incomplete_expired: "incomplete_expired";
72
+ past_due: "past_due";
73
+ paused: "paused";
70
74
  provisional: "provisional";
71
75
  trialing: "trialing";
72
- active: "active";
73
- past_due: "past_due";
74
76
  unpaid: "unpaid";
75
- canceled: "canceled";
76
- paused: "paused";
77
77
  }>;
78
78
  interval: Struct<"month" | "year", {
79
79
  month: "month";
@@ -89,10 +89,10 @@ export declare const SubscriptionStruct: Struct<{
89
89
  } | {
90
90
  type: "crypto";
91
91
  crypto: {
92
- chainId: `0x${string}`;
93
92
  payerAddress: `0x${string}`;
93
+ chainId: `0x${string}`;
94
94
  tokenSymbol: string;
95
- error?: "approval_transaction_too_old" | "approval_transaction_reverted" | "approval_transaction_max_verification_attempts_reached" | "insufficient_balance" | "insufficient_allowance" | undefined;
95
+ error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
96
96
  };
97
97
  }, null>;
98
98
  trialPeriodDays: Struct<number | undefined, null>;
@@ -100,9 +100,9 @@ export declare const SubscriptionStruct: Struct<{
100
100
  trialEnd: Struct<string | undefined, null>;
101
101
  endDate: Struct<string | undefined, null>;
102
102
  canceledAt: Struct<string | undefined, null>;
103
- cancelType: Struct<"allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification", {
104
- allowed_immediate: "allowed_immediate";
103
+ cancelType: Struct<"allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification", {
105
104
  allowed_at_period_end: "allowed_at_period_end";
105
+ allowed_immediate: "allowed_immediate";
106
106
  not_allowed: "not_allowed";
107
107
  not_allowed_pending_verification: "not_allowed_pending_verification";
108
108
  }>;
@@ -111,17 +111,19 @@ export declare const SubscriptionStruct: Struct<{
111
111
  billingCycles: Struct<number | undefined, null>;
112
112
  }>;
113
113
  export declare const GetSubscriptionsResponseStruct: Struct<{
114
+ customerId?: string | undefined;
114
115
  subscriptions: {
115
116
  id: string;
116
117
  products: {
117
- name: "shield" | "money_account_plus";
118
+ name: "money_account_plus" | "shield";
118
119
  currency: "usd";
119
120
  unitAmount: number;
120
121
  unitDecimals: number;
121
122
  }[];
122
123
  currentPeriodStart: string;
123
124
  currentPeriodEnd: string;
124
- status: "incomplete" | "incomplete_expired" | "provisional" | "trialing" | "active" | "past_due" | "unpaid" | "canceled" | "paused";
125
+ cancelAtPeriodEnd?: boolean | undefined;
126
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
125
127
  interval: "month" | "year";
126
128
  paymentMethod: {
127
129
  type: "card";
@@ -133,36 +135,52 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
133
135
  } | {
134
136
  type: "crypto";
135
137
  crypto: {
136
- chainId: `0x${string}`;
137
138
  payerAddress: `0x${string}`;
139
+ chainId: `0x${string}`;
138
140
  tokenSymbol: string;
139
- error?: "approval_transaction_too_old" | "approval_transaction_reverted" | "approval_transaction_max_verification_attempts_reached" | "insufficient_balance" | "insufficient_allowance" | undefined;
141
+ error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
140
142
  };
141
143
  };
142
- cancelType: "allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification";
143
- isEligibleForSupport: boolean;
144
- billingCycles?: number | undefined;
145
- cancelAtPeriodEnd?: boolean | undefined;
146
144
  trialPeriodDays?: number | undefined;
147
145
  trialStart?: string | undefined;
148
146
  trialEnd?: string | undefined;
149
147
  endDate?: string | undefined;
150
148
  canceledAt?: string | undefined;
149
+ cancelType: "allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification";
151
150
  inactiveAt?: string | undefined;
151
+ isEligibleForSupport: boolean;
152
+ billingCycles?: number | undefined;
152
153
  }[];
153
- trialedProducts: ("shield" | "money_account_plus")[];
154
- customerId?: string | undefined;
154
+ trialedProducts: ("money_account_plus" | "shield")[];
155
+ productEntitlements?: {
156
+ shield?: {
157
+ entitlements: {
158
+ shieldClaim: boolean;
159
+ prioritySupport: boolean;
160
+ };
161
+ } | undefined;
162
+ money_account_plus?: {
163
+ plan: string;
164
+ entitlements: {
165
+ swapFeeWaiver: boolean;
166
+ perpsFeeWaiver: boolean;
167
+ predictFreeTx: boolean;
168
+ premiumApy: boolean;
169
+ };
170
+ } | undefined;
171
+ } | undefined;
155
172
  lastSubscription?: {
156
173
  id: string;
157
174
  products: {
158
- name: "shield" | "money_account_plus";
175
+ name: "money_account_plus" | "shield";
159
176
  currency: "usd";
160
177
  unitAmount: number;
161
178
  unitDecimals: number;
162
179
  }[];
163
180
  currentPeriodStart: string;
164
181
  currentPeriodEnd: string;
165
- status: "incomplete" | "incomplete_expired" | "provisional" | "trialing" | "active" | "past_due" | "unpaid" | "canceled" | "paused";
182
+ cancelAtPeriodEnd?: boolean | undefined;
183
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
166
184
  interval: "month" | "year";
167
185
  paymentMethod: {
168
186
  type: "card";
@@ -174,22 +192,21 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
174
192
  } | {
175
193
  type: "crypto";
176
194
  crypto: {
177
- chainId: `0x${string}`;
178
195
  payerAddress: `0x${string}`;
196
+ chainId: `0x${string}`;
179
197
  tokenSymbol: string;
180
- error?: "approval_transaction_too_old" | "approval_transaction_reverted" | "approval_transaction_max_verification_attempts_reached" | "insufficient_balance" | "insufficient_allowance" | undefined;
198
+ error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
181
199
  };
182
200
  };
183
- cancelType: "allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification";
184
- isEligibleForSupport: boolean;
185
- billingCycles?: number | undefined;
186
- cancelAtPeriodEnd?: boolean | undefined;
187
201
  trialPeriodDays?: number | undefined;
188
202
  trialStart?: string | undefined;
189
203
  trialEnd?: string | undefined;
190
204
  endDate?: string | undefined;
191
205
  canceledAt?: string | undefined;
206
+ cancelType: "allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification";
192
207
  inactiveAt?: string | undefined;
208
+ isEligibleForSupport: boolean;
209
+ billingCycles?: number | undefined;
193
210
  } | undefined;
194
211
  rewardAccountId?: `${string}:${string}:${string}` | undefined;
195
212
  }, {
@@ -197,14 +214,15 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
197
214
  subscriptions: Struct<{
198
215
  id: string;
199
216
  products: {
200
- name: "shield" | "money_account_plus";
217
+ name: "money_account_plus" | "shield";
201
218
  currency: "usd";
202
219
  unitAmount: number;
203
220
  unitDecimals: number;
204
221
  }[];
205
222
  currentPeriodStart: string;
206
223
  currentPeriodEnd: string;
207
- status: "incomplete" | "incomplete_expired" | "provisional" | "trialing" | "active" | "past_due" | "unpaid" | "canceled" | "paused";
224
+ cancelAtPeriodEnd?: boolean | undefined;
225
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
208
226
  interval: "month" | "year";
209
227
  paymentMethod: {
210
228
  type: "card";
@@ -216,33 +234,33 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
216
234
  } | {
217
235
  type: "crypto";
218
236
  crypto: {
219
- chainId: `0x${string}`;
220
237
  payerAddress: `0x${string}`;
238
+ chainId: `0x${string}`;
221
239
  tokenSymbol: string;
222
- error?: "approval_transaction_too_old" | "approval_transaction_reverted" | "approval_transaction_max_verification_attempts_reached" | "insufficient_balance" | "insufficient_allowance" | undefined;
240
+ error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
223
241
  };
224
242
  };
225
- cancelType: "allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification";
226
- isEligibleForSupport: boolean;
227
- billingCycles?: number | undefined;
228
- cancelAtPeriodEnd?: boolean | undefined;
229
243
  trialPeriodDays?: number | undefined;
230
244
  trialStart?: string | undefined;
231
245
  trialEnd?: string | undefined;
232
246
  endDate?: string | undefined;
233
247
  canceledAt?: string | undefined;
248
+ cancelType: "allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification";
234
249
  inactiveAt?: string | undefined;
250
+ isEligibleForSupport: boolean;
251
+ billingCycles?: number | undefined;
235
252
  }[], Struct<{
236
253
  id: string;
237
254
  products: {
238
- name: "shield" | "money_account_plus";
255
+ name: "money_account_plus" | "shield";
239
256
  currency: "usd";
240
257
  unitAmount: number;
241
258
  unitDecimals: number;
242
259
  }[];
243
260
  currentPeriodStart: string;
244
261
  currentPeriodEnd: string;
245
- status: "incomplete" | "incomplete_expired" | "provisional" | "trialing" | "active" | "past_due" | "unpaid" | "canceled" | "paused";
262
+ cancelAtPeriodEnd?: boolean | undefined;
263
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
246
264
  interval: "month" | "year";
247
265
  paymentMethod: {
248
266
  type: "card";
@@ -254,38 +272,37 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
254
272
  } | {
255
273
  type: "crypto";
256
274
  crypto: {
257
- chainId: `0x${string}`;
258
275
  payerAddress: `0x${string}`;
276
+ chainId: `0x${string}`;
259
277
  tokenSymbol: string;
260
- error?: "approval_transaction_too_old" | "approval_transaction_reverted" | "approval_transaction_max_verification_attempts_reached" | "insufficient_balance" | "insufficient_allowance" | undefined;
278
+ error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
261
279
  };
262
280
  };
263
- cancelType: "allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification";
264
- isEligibleForSupport: boolean;
265
- billingCycles?: number | undefined;
266
- cancelAtPeriodEnd?: boolean | undefined;
267
281
  trialPeriodDays?: number | undefined;
268
282
  trialStart?: string | undefined;
269
283
  trialEnd?: string | undefined;
270
284
  endDate?: string | undefined;
271
285
  canceledAt?: string | undefined;
286
+ cancelType: "allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification";
272
287
  inactiveAt?: string | undefined;
288
+ isEligibleForSupport: boolean;
289
+ billingCycles?: number | undefined;
273
290
  }, {
274
291
  id: Struct<string, null>;
275
292
  products: Struct<{
276
- name: "shield" | "money_account_plus";
293
+ name: "money_account_plus" | "shield";
277
294
  currency: "usd";
278
295
  unitAmount: number;
279
296
  unitDecimals: number;
280
297
  }[], Struct<{
281
- name: "shield" | "money_account_plus";
298
+ name: "money_account_plus" | "shield";
282
299
  currency: "usd";
283
300
  unitAmount: number;
284
301
  unitDecimals: number;
285
302
  }, {
286
- name: Struct<"shield" | "money_account_plus", {
287
- shield: "shield";
303
+ name: Struct<"money_account_plus" | "shield", {
288
304
  money_account_plus: "money_account_plus";
305
+ shield: "shield";
289
306
  }>;
290
307
  currency: Struct<"usd", {
291
308
  usd: "usd";
@@ -296,16 +313,16 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
296
313
  currentPeriodStart: Struct<string, null>;
297
314
  currentPeriodEnd: Struct<string, null>;
298
315
  cancelAtPeriodEnd: Struct<boolean | undefined, null>;
299
- status: Struct<"incomplete" | "incomplete_expired" | "provisional" | "trialing" | "active" | "past_due" | "unpaid" | "canceled" | "paused", {
316
+ status: Struct<"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid", {
317
+ active: "active";
318
+ canceled: "canceled";
300
319
  incomplete: "incomplete";
301
320
  incomplete_expired: "incomplete_expired";
321
+ past_due: "past_due";
322
+ paused: "paused";
302
323
  provisional: "provisional";
303
324
  trialing: "trialing";
304
- active: "active";
305
- past_due: "past_due";
306
325
  unpaid: "unpaid";
307
- canceled: "canceled";
308
- paused: "paused";
309
326
  }>;
310
327
  interval: Struct<"month" | "year", {
311
328
  month: "month";
@@ -321,10 +338,10 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
321
338
  } | {
322
339
  type: "crypto";
323
340
  crypto: {
324
- chainId: `0x${string}`;
325
341
  payerAddress: `0x${string}`;
342
+ chainId: `0x${string}`;
326
343
  tokenSymbol: string;
327
- error?: "approval_transaction_too_old" | "approval_transaction_reverted" | "approval_transaction_max_verification_attempts_reached" | "insufficient_balance" | "insufficient_allowance" | undefined;
344
+ error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
328
345
  };
329
346
  }, null>;
330
347
  trialPeriodDays: Struct<number | undefined, null>;
@@ -332,9 +349,9 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
332
349
  trialEnd: Struct<string | undefined, null>;
333
350
  endDate: Struct<string | undefined, null>;
334
351
  canceledAt: Struct<string | undefined, null>;
335
- cancelType: Struct<"allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification", {
336
- allowed_immediate: "allowed_immediate";
352
+ cancelType: Struct<"allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification", {
337
353
  allowed_at_period_end: "allowed_at_period_end";
354
+ allowed_immediate: "allowed_immediate";
338
355
  not_allowed: "not_allowed";
339
356
  not_allowed_pending_verification: "not_allowed_pending_verification";
340
357
  }>;
@@ -342,21 +359,76 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
342
359
  isEligibleForSupport: Struct<boolean, null>;
343
360
  billingCycles: Struct<number | undefined, null>;
344
361
  }>>;
345
- trialedProducts: Struct<("shield" | "money_account_plus")[], Struct<"shield" | "money_account_plus", {
346
- shield: "shield";
362
+ trialedProducts: Struct<("money_account_plus" | "shield")[], Struct<"money_account_plus" | "shield", {
347
363
  money_account_plus: "money_account_plus";
364
+ shield: "shield";
348
365
  }>>;
366
+ productEntitlements: Struct<{
367
+ shield?: {
368
+ entitlements: {
369
+ shieldClaim: boolean;
370
+ prioritySupport: boolean;
371
+ };
372
+ } | undefined;
373
+ money_account_plus?: {
374
+ plan: string;
375
+ entitlements: {
376
+ swapFeeWaiver: boolean;
377
+ perpsFeeWaiver: boolean;
378
+ predictFreeTx: boolean;
379
+ premiumApy: boolean;
380
+ };
381
+ } | undefined;
382
+ } | undefined, {
383
+ shield: Struct<{
384
+ entitlements: {
385
+ shieldClaim: boolean;
386
+ prioritySupport: boolean;
387
+ };
388
+ } | undefined, {
389
+ entitlements: Struct<{
390
+ shieldClaim: boolean;
391
+ prioritySupport: boolean;
392
+ }, {
393
+ shieldClaim: Struct<boolean, null>;
394
+ prioritySupport: Struct<boolean, null>;
395
+ }>;
396
+ }>;
397
+ money_account_plus: Struct<{
398
+ plan: string;
399
+ entitlements: {
400
+ swapFeeWaiver: boolean;
401
+ perpsFeeWaiver: boolean;
402
+ predictFreeTx: boolean;
403
+ premiumApy: boolean;
404
+ };
405
+ } | undefined, {
406
+ plan: Struct<string, null>;
407
+ entitlements: Struct<{
408
+ swapFeeWaiver: boolean;
409
+ perpsFeeWaiver: boolean;
410
+ predictFreeTx: boolean;
411
+ premiumApy: boolean;
412
+ }, {
413
+ swapFeeWaiver: Struct<boolean, null>;
414
+ perpsFeeWaiver: Struct<boolean, null>;
415
+ predictFreeTx: Struct<boolean, null>;
416
+ premiumApy: Struct<boolean, null>;
417
+ }>;
418
+ }>;
419
+ }>;
349
420
  lastSubscription: Struct<{
350
421
  id: string;
351
422
  products: {
352
- name: "shield" | "money_account_plus";
423
+ name: "money_account_plus" | "shield";
353
424
  currency: "usd";
354
425
  unitAmount: number;
355
426
  unitDecimals: number;
356
427
  }[];
357
428
  currentPeriodStart: string;
358
429
  currentPeriodEnd: string;
359
- status: "incomplete" | "incomplete_expired" | "provisional" | "trialing" | "active" | "past_due" | "unpaid" | "canceled" | "paused";
430
+ cancelAtPeriodEnd?: boolean | undefined;
431
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
360
432
  interval: "month" | "year";
361
433
  paymentMethod: {
362
434
  type: "card";
@@ -368,38 +440,37 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
368
440
  } | {
369
441
  type: "crypto";
370
442
  crypto: {
371
- chainId: `0x${string}`;
372
443
  payerAddress: `0x${string}`;
444
+ chainId: `0x${string}`;
373
445
  tokenSymbol: string;
374
- error?: "approval_transaction_too_old" | "approval_transaction_reverted" | "approval_transaction_max_verification_attempts_reached" | "insufficient_balance" | "insufficient_allowance" | undefined;
446
+ error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
375
447
  };
376
448
  };
377
- cancelType: "allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification";
378
- isEligibleForSupport: boolean;
379
- billingCycles?: number | undefined;
380
- cancelAtPeriodEnd?: boolean | undefined;
381
449
  trialPeriodDays?: number | undefined;
382
450
  trialStart?: string | undefined;
383
451
  trialEnd?: string | undefined;
384
452
  endDate?: string | undefined;
385
453
  canceledAt?: string | undefined;
454
+ cancelType: "allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification";
386
455
  inactiveAt?: string | undefined;
456
+ isEligibleForSupport: boolean;
457
+ billingCycles?: number | undefined;
387
458
  } | undefined, {
388
459
  id: Struct<string, null>;
389
460
  products: Struct<{
390
- name: "shield" | "money_account_plus";
461
+ name: "money_account_plus" | "shield";
391
462
  currency: "usd";
392
463
  unitAmount: number;
393
464
  unitDecimals: number;
394
465
  }[], Struct<{
395
- name: "shield" | "money_account_plus";
466
+ name: "money_account_plus" | "shield";
396
467
  currency: "usd";
397
468
  unitAmount: number;
398
469
  unitDecimals: number;
399
470
  }, {
400
- name: Struct<"shield" | "money_account_plus", {
401
- shield: "shield";
471
+ name: Struct<"money_account_plus" | "shield", {
402
472
  money_account_plus: "money_account_plus";
473
+ shield: "shield";
403
474
  }>;
404
475
  currency: Struct<"usd", {
405
476
  usd: "usd";
@@ -410,16 +481,16 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
410
481
  currentPeriodStart: Struct<string, null>;
411
482
  currentPeriodEnd: Struct<string, null>;
412
483
  cancelAtPeriodEnd: Struct<boolean | undefined, null>;
413
- status: Struct<"incomplete" | "incomplete_expired" | "provisional" | "trialing" | "active" | "past_due" | "unpaid" | "canceled" | "paused", {
484
+ status: Struct<"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid", {
485
+ active: "active";
486
+ canceled: "canceled";
414
487
  incomplete: "incomplete";
415
488
  incomplete_expired: "incomplete_expired";
489
+ past_due: "past_due";
490
+ paused: "paused";
416
491
  provisional: "provisional";
417
492
  trialing: "trialing";
418
- active: "active";
419
- past_due: "past_due";
420
493
  unpaid: "unpaid";
421
- canceled: "canceled";
422
- paused: "paused";
423
494
  }>;
424
495
  interval: Struct<"month" | "year", {
425
496
  month: "month";
@@ -435,10 +506,10 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
435
506
  } | {
436
507
  type: "crypto";
437
508
  crypto: {
438
- chainId: `0x${string}`;
439
509
  payerAddress: `0x${string}`;
510
+ chainId: `0x${string}`;
440
511
  tokenSymbol: string;
441
- error?: "approval_transaction_too_old" | "approval_transaction_reverted" | "approval_transaction_max_verification_attempts_reached" | "insufficient_balance" | "insufficient_allowance" | undefined;
512
+ error?: "approval_transaction_max_verification_attempts_reached" | "approval_transaction_reverted" | "approval_transaction_too_old" | "insufficient_allowance" | "insufficient_balance" | undefined;
442
513
  };
443
514
  }, null>;
444
515
  trialPeriodDays: Struct<number | undefined, null>;
@@ -446,9 +517,9 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
446
517
  trialEnd: Struct<string | undefined, null>;
447
518
  endDate: Struct<string | undefined, null>;
448
519
  canceledAt: Struct<string | undefined, null>;
449
- cancelType: Struct<"allowed_immediate" | "allowed_at_period_end" | "not_allowed" | "not_allowed_pending_verification", {
450
- allowed_immediate: "allowed_immediate";
520
+ cancelType: Struct<"allowed_at_period_end" | "allowed_immediate" | "not_allowed" | "not_allowed_pending_verification", {
451
521
  allowed_at_period_end: "allowed_at_period_end";
522
+ allowed_immediate: "allowed_immediate";
452
523
  not_allowed: "not_allowed";
453
524
  not_allowed_pending_verification: "not_allowed_pending_verification";
454
525
  }>;
@@ -458,26 +529,123 @@ export declare const GetSubscriptionsResponseStruct: Struct<{
458
529
  }>;
459
530
  rewardAccountId: Struct<`${string}:${string}:${string}` | undefined, null>;
460
531
  }>;
532
+ export declare const SubscriptionBenefitsResponseStruct: Struct<{
533
+ eligible: boolean;
534
+ billingPeriodId: string | null;
535
+ products: {
536
+ swaps: {
537
+ feeBips: string | null;
538
+ capMicroUsd?: number | undefined;
539
+ consumedMicroUsd?: number | undefined;
540
+ remainingMicroUsd: number | null;
541
+ exhausted: boolean;
542
+ };
543
+ perps: {
544
+ builderFeeBips: string | null;
545
+ builderCode: string | null;
546
+ capMicroUsd?: number | undefined;
547
+ consumedMicroUsd?: number | undefined;
548
+ remainingMicroUsd: number | null;
549
+ exhausted: boolean;
550
+ };
551
+ predict: {
552
+ builderCode: string | null;
553
+ capTxCount?: number | undefined;
554
+ consumedTxCount?: number | undefined;
555
+ remainingTxCount: number | null;
556
+ exhausted: boolean;
557
+ };
558
+ };
559
+ }, {
560
+ eligible: Struct<boolean, null>;
561
+ billingPeriodId: Struct<string | null, null>;
562
+ products: Struct<{
563
+ swaps: {
564
+ feeBips: string | null;
565
+ capMicroUsd?: number | undefined;
566
+ consumedMicroUsd?: number | undefined;
567
+ remainingMicroUsd: number | null;
568
+ exhausted: boolean;
569
+ };
570
+ perps: {
571
+ builderFeeBips: string | null;
572
+ builderCode: string | null;
573
+ capMicroUsd?: number | undefined;
574
+ consumedMicroUsd?: number | undefined;
575
+ remainingMicroUsd: number | null;
576
+ exhausted: boolean;
577
+ };
578
+ predict: {
579
+ builderCode: string | null;
580
+ capTxCount?: number | undefined;
581
+ consumedTxCount?: number | undefined;
582
+ remainingTxCount: number | null;
583
+ exhausted: boolean;
584
+ };
585
+ }, {
586
+ swaps: Struct<{
587
+ feeBips: string | null;
588
+ capMicroUsd?: number | undefined;
589
+ consumedMicroUsd?: number | undefined;
590
+ remainingMicroUsd: number | null;
591
+ exhausted: boolean;
592
+ }, {
593
+ feeBips: Struct<string | null, null>;
594
+ capMicroUsd: Struct<number | undefined, null>;
595
+ consumedMicroUsd: Struct<number | undefined, null>;
596
+ remainingMicroUsd: Struct<number | null, null>;
597
+ exhausted: Struct<boolean, null>;
598
+ }>;
599
+ perps: Struct<{
600
+ builderFeeBips: string | null;
601
+ builderCode: string | null;
602
+ capMicroUsd?: number | undefined;
603
+ consumedMicroUsd?: number | undefined;
604
+ remainingMicroUsd: number | null;
605
+ exhausted: boolean;
606
+ }, {
607
+ builderFeeBips: Struct<string | null, null>;
608
+ builderCode: Struct<string | null, null>;
609
+ capMicroUsd: Struct<number | undefined, null>;
610
+ consumedMicroUsd: Struct<number | undefined, null>;
611
+ remainingMicroUsd: Struct<number | null, null>;
612
+ exhausted: Struct<boolean, null>;
613
+ }>;
614
+ predict: Struct<{
615
+ builderCode: string | null;
616
+ capTxCount?: number | undefined;
617
+ consumedTxCount?: number | undefined;
618
+ remainingTxCount: number | null;
619
+ exhausted: boolean;
620
+ }, {
621
+ builderCode: Struct<string | null, null>;
622
+ capTxCount: Struct<number | undefined, null>;
623
+ consumedTxCount: Struct<number | undefined, null>;
624
+ remainingTxCount: Struct<number | null, null>;
625
+ exhausted: Struct<boolean, null>;
626
+ }>;
627
+ }>;
628
+ }>;
461
629
  export declare const StartSubscriptionResponseStruct: Struct<{
462
630
  checkoutSessionUrl: string;
463
631
  }, {
464
632
  checkoutSessionUrl: Struct<string, null>;
465
633
  }>;
466
634
  export declare const StartCryptoSubscriptionResponseStruct: Struct<{
467
- status: "incomplete" | "incomplete_expired" | "provisional" | "trialing" | "active" | "past_due" | "unpaid" | "canceled" | "paused";
468
635
  subscriptionId: string;
636
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid";
469
637
  }, {
470
638
  subscriptionId: Struct<string, null>;
471
- status: Struct<"incomplete" | "incomplete_expired" | "provisional" | "trialing" | "active" | "past_due" | "unpaid" | "canceled" | "paused", {
639
+ status: Struct<"active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "provisional" | "trialing" | "unpaid", {
640
+ active: "active";
641
+ canceled: "canceled";
472
642
  incomplete: "incomplete";
473
643
  incomplete_expired: "incomplete_expired";
644
+ past_due: "past_due";
645
+ paused: "paused";
474
646
  provisional: "provisional";
475
647
  trialing: "trialing";
476
- active: "active";
477
- past_due: "past_due";
478
648
  unpaid: "unpaid";
479
- canceled: "canceled";
480
- paused: "paused";
481
649
  }>;
482
650
  }>;
483
651
  export declare const UpdatePaymentMethodCardResponseStruct: Struct<{
@@ -499,12 +667,12 @@ export declare const SubscriptionApiGeneralResponseStruct: Struct<{
499
667
  }>;
500
668
  export declare const PricingResponseStruct: Struct<{
501
669
  products: {
502
- name: "shield" | "money_account_plus";
670
+ name: "money_account_plus" | "shield";
503
671
  prices: {
504
- currency: "usd";
672
+ interval: "month" | "year";
505
673
  unitAmount: number;
506
674
  unitDecimals: number;
507
- interval: "month" | "year";
675
+ currency: "usd";
508
676
  trialPeriodDays: number;
509
677
  minBillingCycles: number;
510
678
  minBillingCyclesForBalance: number;
@@ -512,60 +680,60 @@ export declare const PricingResponseStruct: Struct<{
512
680
  }[];
513
681
  paymentMethods: ({
514
682
  type: "card";
515
- products?: ("shield" | "money_account_plus")[] | undefined;
683
+ products?: ("money_account_plus" | "shield")[] | undefined;
516
684
  } | {
517
685
  type: "crypto";
518
- products?: ("shield" | "money_account_plus")[] | undefined;
519
- cryptoAuthMethod?: "erc20_approval" | "delegation" | undefined;
686
+ cryptoAuthMethod?: "delegation" | "erc20_approval" | undefined;
687
+ products?: ("money_account_plus" | "shield")[] | undefined;
520
688
  chains?: {
521
689
  chainId: `0x${string}`;
522
690
  paymentAddress: `0x${string}`;
523
- tokens: TokenPaymentInfo[];
524
691
  delegateAddress?: `0x${string}` | undefined;
692
+ tokens: TokenPaymentInfo[];
525
693
  isSponsorshipSupported?: boolean | undefined;
526
694
  }[] | undefined;
527
695
  })[];
528
696
  }, {
529
697
  products: Struct<{
530
- name: "shield" | "money_account_plus";
698
+ name: "money_account_plus" | "shield";
531
699
  prices: {
532
- currency: "usd";
700
+ interval: "month" | "year";
533
701
  unitAmount: number;
534
702
  unitDecimals: number;
535
- interval: "month" | "year";
703
+ currency: "usd";
536
704
  trialPeriodDays: number;
537
705
  minBillingCycles: number;
538
706
  minBillingCyclesForBalance: number;
539
707
  }[];
540
708
  }[], Struct<{
541
- name: "shield" | "money_account_plus";
709
+ name: "money_account_plus" | "shield";
542
710
  prices: {
543
- currency: "usd";
711
+ interval: "month" | "year";
544
712
  unitAmount: number;
545
713
  unitDecimals: number;
546
- interval: "month" | "year";
714
+ currency: "usd";
547
715
  trialPeriodDays: number;
548
716
  minBillingCycles: number;
549
717
  minBillingCyclesForBalance: number;
550
718
  }[];
551
719
  }, {
552
- name: Struct<"shield" | "money_account_plus", {
553
- shield: "shield";
720
+ name: Struct<"money_account_plus" | "shield", {
554
721
  money_account_plus: "money_account_plus";
722
+ shield: "shield";
555
723
  }>;
556
724
  prices: Struct<{
557
- currency: "usd";
725
+ interval: "month" | "year";
558
726
  unitAmount: number;
559
727
  unitDecimals: number;
560
- interval: "month" | "year";
728
+ currency: "usd";
561
729
  trialPeriodDays: number;
562
730
  minBillingCycles: number;
563
731
  minBillingCyclesForBalance: number;
564
732
  }[], Struct<{
565
- currency: "usd";
733
+ interval: "month" | "year";
566
734
  unitAmount: number;
567
735
  unitDecimals: number;
568
- interval: "month" | "year";
736
+ currency: "usd";
569
737
  trialPeriodDays: number;
570
738
  minBillingCycles: number;
571
739
  minBillingCyclesForBalance: number;
@@ -586,36 +754,36 @@ export declare const PricingResponseStruct: Struct<{
586
754
  }>>;
587
755
  paymentMethods: Struct<({
588
756
  type: "card";
589
- products?: ("shield" | "money_account_plus")[] | undefined;
757
+ products?: ("money_account_plus" | "shield")[] | undefined;
590
758
  } | {
591
759
  type: "crypto";
592
- products?: ("shield" | "money_account_plus")[] | undefined;
593
- cryptoAuthMethod?: "erc20_approval" | "delegation" | undefined;
760
+ cryptoAuthMethod?: "delegation" | "erc20_approval" | undefined;
761
+ products?: ("money_account_plus" | "shield")[] | undefined;
594
762
  chains?: {
595
763
  chainId: `0x${string}`;
596
764
  paymentAddress: `0x${string}`;
597
- tokens: TokenPaymentInfo[];
598
765
  delegateAddress?: `0x${string}` | undefined;
766
+ tokens: TokenPaymentInfo[];
599
767
  isSponsorshipSupported?: boolean | undefined;
600
768
  }[] | undefined;
601
769
  })[], Struct<{
602
770
  type: "card";
603
- products?: ("shield" | "money_account_plus")[] | undefined;
771
+ products?: ("money_account_plus" | "shield")[] | undefined;
604
772
  } | {
605
773
  type: "crypto";
606
- products?: ("shield" | "money_account_plus")[] | undefined;
607
- cryptoAuthMethod?: "erc20_approval" | "delegation" | undefined;
774
+ cryptoAuthMethod?: "delegation" | "erc20_approval" | undefined;
775
+ products?: ("money_account_plus" | "shield")[] | undefined;
608
776
  chains?: {
609
777
  chainId: `0x${string}`;
610
778
  paymentAddress: `0x${string}`;
611
- tokens: TokenPaymentInfo[];
612
779
  delegateAddress?: `0x${string}` | undefined;
780
+ tokens: TokenPaymentInfo[];
613
781
  isSponsorshipSupported?: boolean | undefined;
614
782
  }[] | undefined;
615
783
  }, null>>;
616
784
  }>;
617
785
  export declare const SubscriptionEligibilityStruct: Struct<{
618
- product: "shield" | "money_account_plus";
786
+ product: "money_account_plus" | "shield";
619
787
  canSubscribe?: boolean | undefined;
620
788
  canViewEntryModal?: boolean | undefined;
621
789
  modalType?: "A" | "B" | undefined;
@@ -629,9 +797,9 @@ export declare const SubscriptionEligibilityStruct: Struct<{
629
797
  assignedAt?: string | undefined;
630
798
  hasAssignedCohortExpired?: boolean | undefined;
631
799
  }, {
632
- product: Struct<"shield" | "money_account_plus", {
633
- shield: "shield";
800
+ product: Struct<"money_account_plus" | "shield", {
634
801
  money_account_plus: "money_account_plus";
802
+ shield: "shield";
635
803
  }>;
636
804
  canSubscribe: Struct<boolean | undefined, null>;
637
805
  canViewEntryModal: Struct<boolean | undefined, null>;
@@ -660,7 +828,7 @@ export declare const SubscriptionEligibilityStruct: Struct<{
660
828
  hasAssignedCohortExpired: Struct<boolean | undefined, null>;
661
829
  }>;
662
830
  export declare const SubscriptionEligibilityArrayStruct: Struct<{
663
- product: "shield" | "money_account_plus";
831
+ product: "money_account_plus" | "shield";
664
832
  canSubscribe?: boolean | undefined;
665
833
  canViewEntryModal?: boolean | undefined;
666
834
  modalType?: "A" | "B" | undefined;
@@ -674,7 +842,7 @@ export declare const SubscriptionEligibilityArrayStruct: Struct<{
674
842
  assignedAt?: string | undefined;
675
843
  hasAssignedCohortExpired?: boolean | undefined;
676
844
  }[], Struct<{
677
- product: "shield" | "money_account_plus";
845
+ product: "money_account_plus" | "shield";
678
846
  canSubscribe?: boolean | undefined;
679
847
  canViewEntryModal?: boolean | undefined;
680
848
  modalType?: "A" | "B" | undefined;
@@ -688,9 +856,9 @@ export declare const SubscriptionEligibilityArrayStruct: Struct<{
688
856
  assignedAt?: string | undefined;
689
857
  hasAssignedCohortExpired?: boolean | undefined;
690
858
  }, {
691
- product: Struct<"shield" | "money_account_plus", {
692
- shield: "shield";
859
+ product: Struct<"money_account_plus" | "shield", {
693
860
  money_account_plus: "money_account_plus";
861
+ shield: "shield";
694
862
  }>;
695
863
  canSubscribe: Struct<boolean | undefined, null>;
696
864
  canViewEntryModal: Struct<boolean | undefined, null>;
@@ -718,4 +886,4 @@ export declare const SubscriptionEligibilityArrayStruct: Struct<{
718
886
  assignedAt: Struct<string | undefined, null>;
719
887
  hasAssignedCohortExpired: Struct<boolean | undefined, null>;
720
888
  }>>;
721
- //# sourceMappingURL=SubscriptionService-structs.d.mts.map
889
+ //# sourceMappingURL=SubscriptionService-structs.d.ts.map