@sparkvault/sdk-mobile 4.3.2 → 4.4.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.
package/dist/types.d.ts CHANGED
@@ -135,13 +135,17 @@ export interface SubscriptionIdentityStatus {
135
135
  state: PoolState;
136
136
  }
137
137
  /**
138
- * GET /v1/billing/subscription — the account's current plan, licensed vs. used
139
- * seats, capacity blocks, live pool usage, and Identity attempts. Drives the
140
- * subscription / usage view. `renewal_amount_usd` is a formatted dollars string;
141
- * `renewal_date` is an epoch (seconds) or null when there is no active plan.
138
+ * GET /v1/billing/subscription — the account's derived billing lifecycle,
139
+ * licensed vs. used seats, capacity blocks, live pool usage, and Identity
140
+ * attempts. Drives the subscription / usage view. `status` is the derived
141
+ * lifecycle label; `is_paying`/`is_entitled` are the booleans the UI gates on
142
+ * (paying vs merely entitled). `renewal_amount_usd` is a formatted dollars
143
+ * string; `renewal_date` is an epoch (seconds) or null when there is no plan.
142
144
  */
143
145
  export interface SparkVaultSubscription {
144
- plan: 'subscription' | 'internal' | 'unsubscribed';
146
+ status: 'free' | 'customer' | 'churned' | 'suspended';
147
+ is_paying: boolean;
148
+ is_entitled: boolean;
145
149
  unlimited: boolean;
146
150
  subscription_status: string | null;
147
151
  past_due: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkvault/sdk-mobile",
3
- "version": "4.3.2",
3
+ "version": "4.4.0",
4
4
  "description": "Mobile SDK for SparkVault Identity, vault, folder, and ingot workflows",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/types.ts CHANGED
@@ -157,13 +157,17 @@ export interface SubscriptionIdentityStatus {
157
157
  }
158
158
 
159
159
  /**
160
- * GET /v1/billing/subscription — the account's current plan, licensed vs. used
161
- * seats, capacity blocks, live pool usage, and Identity attempts. Drives the
162
- * subscription / usage view. `renewal_amount_usd` is a formatted dollars string;
163
- * `renewal_date` is an epoch (seconds) or null when there is no active plan.
160
+ * GET /v1/billing/subscription — the account's derived billing lifecycle,
161
+ * licensed vs. used seats, capacity blocks, live pool usage, and Identity
162
+ * attempts. Drives the subscription / usage view. `status` is the derived
163
+ * lifecycle label; `is_paying`/`is_entitled` are the booleans the UI gates on
164
+ * (paying vs merely entitled). `renewal_amount_usd` is a formatted dollars
165
+ * string; `renewal_date` is an epoch (seconds) or null when there is no plan.
164
166
  */
165
167
  export interface SparkVaultSubscription {
166
- plan: 'subscription' | 'internal' | 'unsubscribed';
168
+ status: 'free' | 'customer' | 'churned' | 'suspended';
169
+ is_paying: boolean;
170
+ is_entitled: boolean;
167
171
  unlimited: boolean;
168
172
  subscription_status: string | null;
169
173
  past_due: boolean;