@sparkvault/sdk-mobile 12.2.5 → 13.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.
|
@@ -43,6 +43,17 @@ export const SPARKVAULT_FILES_HOST: "files.sv";
|
|
|
43
43
|
* trusted the way a platform host is (isSparkVaultOwnedHostname).
|
|
44
44
|
*/
|
|
45
45
|
export const SPARKVAULT_HELP_DESK_DOMAIN: "help.sv";
|
|
46
|
+
/**
|
|
47
|
+
* The Help Desk sign-in host (`https://signin.help.sv`): the one fixed host of
|
|
48
|
+
* the window Help Desk's own sign-in opens (`/{desk_id}/{challenge_id}`) and
|
|
49
|
+
* of the one redirect URI its Identity client registers (`/callback`). Its
|
|
50
|
+
* label is a reserved organization handle (organization-handle.js), so no desk
|
|
51
|
+
* can hold it, and the help.sv Worker serves the portal's shell on it as on
|
|
52
|
+
* every host of the domain. Like every host under the help-desk domain it is
|
|
53
|
+
* reserved and not owned (isSparkVaultOwnedHostname). Core takes the window's
|
|
54
|
+
* steps only from exactly this origin.
|
|
55
|
+
*/
|
|
56
|
+
export const SPARKVAULT_HELP_DESK_SIGN_IN_HOST: "signin.help.sv";
|
|
46
57
|
/**
|
|
47
58
|
* Notify's mail domain: each organization's Notify mail goes from a host under
|
|
48
59
|
* it, as its help desk's goes from one under the help-desk domain. On the web
|
|
@@ -34,6 +34,17 @@ export const SPARKVAULT_FILES_HOST = 'files.sv';
|
|
|
34
34
|
* trusted the way a platform host is (isSparkVaultOwnedHostname).
|
|
35
35
|
*/
|
|
36
36
|
export const SPARKVAULT_HELP_DESK_DOMAIN = 'help.sv';
|
|
37
|
+
/**
|
|
38
|
+
* The Help Desk sign-in host (`https://signin.help.sv`): the one fixed host of
|
|
39
|
+
* the window Help Desk's own sign-in opens (`/{desk_id}/{challenge_id}`) and
|
|
40
|
+
* of the one redirect URI its Identity client registers (`/callback`). Its
|
|
41
|
+
* label is a reserved organization handle (organization-handle.js), so no desk
|
|
42
|
+
* can hold it, and the help.sv Worker serves the portal's shell on it as on
|
|
43
|
+
* every host of the domain. Like every host under the help-desk domain it is
|
|
44
|
+
* reserved and not owned (isSparkVaultOwnedHostname). Core takes the window's
|
|
45
|
+
* steps only from exactly this origin.
|
|
46
|
+
*/
|
|
47
|
+
export const SPARKVAULT_HELP_DESK_SIGN_IN_HOST = `signin.${SPARKVAULT_HELP_DESK_DOMAIN}`;
|
|
37
48
|
/**
|
|
38
49
|
* Notify's mail domain: each organization's Notify mail goes from a host under
|
|
39
50
|
* it, as its help desk's goes from one under the help-desk domain. On the web
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-domains.js","sourceRoot":"","sources":["../../src/app-sdk/platform-domains.js"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,4DAA4D;AAC5D,8DAA8D;AAE9D;;;;;;;;;GASG;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;AAEvD,6EAA6E;AAC7E,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,qBAAqB,CAAC;AAE9D,8FAA8F;AAC9F,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAE5C,4DAA4D;AAC5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,SAAS,CAAC;AAErD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,SAAS,CAAC;AAEvD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3D,2BAA2B;IAC3B,6BAA6B;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,CAAC;IACxD,oBAAoB;IACpB,qBAAqB;IACrB,qBAAqB;I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,2BAA2B;IACzC,OAAO,4BAA4B,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,0BAA0B;IACxC,OAAO,0BAA0B,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;AACnE,CAAC"}
|
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;
|
|
188
|
-
*
|
|
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
|
-
/**
|
|
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
|
@@ -42,6 +42,18 @@ export const SPARKVAULT_FILES_HOST = 'files.sv';
|
|
|
42
42
|
*/
|
|
43
43
|
export const SPARKVAULT_HELP_DESK_DOMAIN = 'help.sv';
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* The Help Desk sign-in host (`https://signin.help.sv`): the one fixed host of
|
|
47
|
+
* the window Help Desk's own sign-in opens (`/{desk_id}/{challenge_id}`) and
|
|
48
|
+
* of the one redirect URI its Identity client registers (`/callback`). Its
|
|
49
|
+
* label is a reserved organization handle (organization-handle.js), so no desk
|
|
50
|
+
* can hold it, and the help.sv Worker serves the portal's shell on it as on
|
|
51
|
+
* every host of the domain. Like every host under the help-desk domain it is
|
|
52
|
+
* reserved and not owned (isSparkVaultOwnedHostname). Core takes the window's
|
|
53
|
+
* steps only from exactly this origin.
|
|
54
|
+
*/
|
|
55
|
+
export const SPARKVAULT_HELP_DESK_SIGN_IN_HOST = `signin.${SPARKVAULT_HELP_DESK_DOMAIN}`;
|
|
56
|
+
|
|
45
57
|
/**
|
|
46
58
|
* Notify's mail domain: each organization's Notify mail goes from a host under
|
|
47
59
|
* it, as its help desk's goes from one under the help-desk domain. On the web
|
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;
|
|
211
|
-
*
|
|
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
|
-
/**
|
|
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;
|