@sparkvault/sdk-mobile 13.0.0 → 13.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -184,8 +184,8 @@ export interface SubscriptionIdentityStatus {
184
184
  * GET /v1/billing/subscription: the account's derived billing lifecycle,
185
185
  * licensed vs. used seats, capacity blocks, live pool usage, and Identity
186
186
  * attempts. Drives the subscription / usage view. `status` is the derived
187
- * lifecycle label; `is_paying`/`is_entitled` are the booleans the UI gates on
188
- * (paying vs merely entitled). `renewal_amount_usd` is a formatted dollars
187
+ * lifecycle label; capability booleans are the UI's access decisions.
188
+ * `renewal_amount_usd` is a formatted dollars
189
189
  * string; `renewal_date` is an epoch (seconds) or null when there is no plan.
190
190
  */
191
191
  export interface SparkVaultSubscription {
@@ -198,6 +198,8 @@ export interface SparkVaultSubscription {
198
198
  status: 'free' | 'customer' | 'churned' | 'suspended';
199
199
  is_paying: boolean;
200
200
  is_entitled: boolean;
201
+ /** Paid Entropy access, excluding provider/product trials; true for the platform admin account. */
202
+ can_generate_entropy: boolean;
201
203
  unlimited: boolean;
202
204
  subscription_status: string | null;
203
205
  past_due: boolean;
@@ -256,7 +258,7 @@ export interface SparkVaultSubscription {
256
258
  pools: SubscriptionPools;
257
259
  identity: SubscriptionIdentityStatus;
258
260
  }
259
- /** Account-wide usage credits. Integer microcredits preserve small usage charges. */
261
+ /** Whole unopened credits and exact remaining usage capacity, shared account-wide. */
260
262
  export interface UsageCreditBalance {
261
263
  /** A reversed subscription payment pauses included allowance, not prepaid funds. */
262
264
  subscription_allowance_paused_until?: number | null;
@@ -267,11 +269,17 @@ export interface UsageCreditBalance {
267
269
  subscription_microcredits: number;
268
270
  purchased_microcredits: number;
269
271
  reserved_microcredits: number;
272
+ /** Exact usable capacity, including the remainder of the open credit. */
270
273
  available_microcredits: number;
274
+ /** Whole source counts sum to funded_credits; subscription capacity is consumed first. */
271
275
  subscription_credits: number;
272
276
  purchased_credits: number;
277
+ /** Additional whole-credit units occupied by aggregate reservations. */
273
278
  reserved_credits: number;
279
+ /** Whole unopened credits; zero does not exhaust available open-credit capacity. */
274
280
  available_credits: number;
281
+ /** available_microcredits modulo the configured microcredits_per_credit. */
282
+ available_credit_remainder_microcredits: number;
275
283
  subscription_cycle_id: string | null;
276
284
  subscription_starts_at: number | null;
277
285
  subscription_expires_at: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkvault/sdk-mobile",
3
- "version": "13.0.0",
3
+ "version": "13.0.2",
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
@@ -207,8 +207,8 @@ export interface SubscriptionIdentityStatus {
207
207
  * GET /v1/billing/subscription: the account's derived billing lifecycle,
208
208
  * licensed vs. used seats, capacity blocks, live pool usage, and Identity
209
209
  * attempts. Drives the subscription / usage view. `status` is the derived
210
- * lifecycle label; `is_paying`/`is_entitled` are the booleans the UI gates on
211
- * (paying vs merely entitled). `renewal_amount_usd` is a formatted dollars
210
+ * lifecycle label; capability booleans are the UI's access decisions.
211
+ * `renewal_amount_usd` is a formatted dollars
212
212
  * string; `renewal_date` is an epoch (seconds) or null when there is no plan.
213
213
  */
214
214
  export interface SparkVaultSubscription {
@@ -221,6 +221,8 @@ export interface SparkVaultSubscription {
221
221
  status: 'free' | 'customer' | 'churned' | 'suspended';
222
222
  is_paying: boolean;
223
223
  is_entitled: boolean;
224
+ /** Paid Entropy access, excluding provider/product trials; true for the platform admin account. */
225
+ can_generate_entropy: boolean;
224
226
  unlimited: boolean;
225
227
  subscription_status: string | null;
226
228
  past_due: boolean;
@@ -276,7 +278,7 @@ export interface SparkVaultSubscription {
276
278
  identity: SubscriptionIdentityStatus;
277
279
  }
278
280
 
279
- /** Account-wide usage credits. Integer microcredits preserve small usage charges. */
281
+ /** Whole unopened credits and exact remaining usage capacity, shared account-wide. */
280
282
  export interface UsageCreditBalance {
281
283
  /** A reversed subscription payment pauses included allowance, not prepaid funds. */
282
284
  subscription_allowance_paused_until?: number | null;
@@ -287,11 +289,17 @@ export interface UsageCreditBalance {
287
289
  subscription_microcredits: number;
288
290
  purchased_microcredits: number;
289
291
  reserved_microcredits: number;
292
+ /** Exact usable capacity, including the remainder of the open credit. */
290
293
  available_microcredits: number;
294
+ /** Whole source counts sum to funded_credits; subscription capacity is consumed first. */
291
295
  subscription_credits: number;
292
296
  purchased_credits: number;
297
+ /** Additional whole-credit units occupied by aggregate reservations. */
293
298
  reserved_credits: number;
299
+ /** Whole unopened credits; zero does not exhaust available open-credit capacity. */
294
300
  available_credits: number;
301
+ /** available_microcredits modulo the configured microcredits_per_credit. */
302
+ available_credit_remainder_microcredits: number;
295
303
  subscription_cycle_id: string | null;
296
304
  subscription_starts_at: number | null;
297
305
  subscription_expires_at: number | null;