@sparkvault/sdk-js 8.11.1 → 8.11.3
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/errors.d.ts +7 -7
- package/dist/index.d.ts +9 -7
- package/dist/ingots/types.d.ts +2 -0
- package/dist/sparkvault.cjs.js +5 -9
- package/dist/sparkvault.cjs.js.map +1 -1
- package/dist/sparkvault.esm.js +5 -9
- package/dist/sparkvault.esm.js.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
package/dist/errors.d.ts
CHANGED
|
@@ -17,11 +17,11 @@ export declare class ValidationError extends SparkVaultError {
|
|
|
17
17
|
constructor(message: string, details?: Record<string, unknown>);
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* The pooled-capacity resource a quota gate refers to.
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* The pooled-capacity resource a quota gate refers to. Only the byte pools
|
|
21
|
+
* hard-gate: flex licensing has no seat limit (inviting and licensing are
|
|
22
|
+
* never quota-gated), and Identity soft-gates through its own path.
|
|
23
23
|
*/
|
|
24
|
-
export type QuotaResource = 'storage' | 'bandwidth'
|
|
24
|
+
export type QuotaResource = 'storage' | 'bandwidth';
|
|
25
25
|
/**
|
|
26
26
|
* Plan required gate (402 PLAN_REQUIRED) — the account has no active
|
|
27
27
|
* subscription and attempted a billable/create action. Surface a subscribe CTA
|
|
@@ -31,9 +31,9 @@ export declare class PlanRequiredError extends SparkVaultError {
|
|
|
31
31
|
constructor(message: string, details?: Record<string, unknown>);
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity
|
|
35
|
-
* exhausted. `resource` identifies which pool so callers can
|
|
36
|
-
*
|
|
34
|
+
* Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity limit is
|
|
35
|
+
* exhausted. `resource` identifies which pool so callers can point the CTA at
|
|
36
|
+
* the right capacity block.
|
|
37
37
|
*/
|
|
38
38
|
export declare class QuotaExceededError extends SparkVaultError {
|
|
39
39
|
readonly resource?: QuotaResource;
|
package/dist/index.d.ts
CHANGED
|
@@ -263,11 +263,11 @@ declare class ValidationError extends SparkVaultError {
|
|
|
263
263
|
constructor(message: string, details?: Record<string, unknown>);
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
266
|
-
* The pooled-capacity resource a quota gate refers to.
|
|
267
|
-
*
|
|
268
|
-
*
|
|
266
|
+
* The pooled-capacity resource a quota gate refers to. Only the byte pools
|
|
267
|
+
* hard-gate: flex licensing has no seat limit (inviting and licensing are
|
|
268
|
+
* never quota-gated), and Identity soft-gates through its own path.
|
|
269
269
|
*/
|
|
270
|
-
type QuotaResource = 'storage' | 'bandwidth'
|
|
270
|
+
type QuotaResource = 'storage' | 'bandwidth';
|
|
271
271
|
/**
|
|
272
272
|
* Plan required gate (402 PLAN_REQUIRED) — the account has no active
|
|
273
273
|
* subscription and attempted a billable/create action. Surface a subscribe CTA
|
|
@@ -277,9 +277,9 @@ declare class PlanRequiredError extends SparkVaultError {
|
|
|
277
277
|
constructor(message: string, details?: Record<string, unknown>);
|
|
278
278
|
}
|
|
279
279
|
/**
|
|
280
|
-
* Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity
|
|
281
|
-
* exhausted. `resource` identifies which pool so callers can
|
|
282
|
-
*
|
|
280
|
+
* Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity limit is
|
|
281
|
+
* exhausted. `resource` identifies which pool so callers can point the CTA at
|
|
282
|
+
* the right capacity block.
|
|
283
283
|
*/
|
|
284
284
|
declare class QuotaExceededError extends SparkVaultError {
|
|
285
285
|
readonly resource?: QuotaResource;
|
|
@@ -1214,6 +1214,8 @@ interface SearchIngotsOptions {
|
|
|
1214
1214
|
q?: string;
|
|
1215
1215
|
/** File type filter */
|
|
1216
1216
|
fileType?: string;
|
|
1217
|
+
/** Scope the search to one folder (whole vault when omitted) */
|
|
1218
|
+
folderId?: string;
|
|
1217
1219
|
/** Minimum size in bytes */
|
|
1218
1220
|
minSize?: number;
|
|
1219
1221
|
/** Maximum size in bytes */
|
package/dist/ingots/types.d.ts
CHANGED
|
@@ -148,6 +148,8 @@ export interface SearchIngotsOptions {
|
|
|
148
148
|
q?: string;
|
|
149
149
|
/** File type filter */
|
|
150
150
|
fileType?: string;
|
|
151
|
+
/** Scope the search to one folder (whole vault when omitted) */
|
|
152
|
+
folderId?: string;
|
|
151
153
|
/** Minimum size in bytes */
|
|
152
154
|
minSize?: number;
|
|
153
155
|
/** Maximum size in bytes */
|
package/dist/sparkvault.cjs.js
CHANGED
|
@@ -49,9 +49,9 @@ class PlanRequiredError extends SparkVaultError {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity
|
|
53
|
-
* exhausted. `resource` identifies which pool so callers can
|
|
54
|
-
*
|
|
52
|
+
* Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity limit is
|
|
53
|
+
* exhausted. `resource` identifies which pool so callers can point the CTA at
|
|
54
|
+
* the right capacity block.
|
|
55
55
|
*/
|
|
56
56
|
class QuotaExceededError extends SparkVaultError {
|
|
57
57
|
constructor(message, details) {
|
|
@@ -59,12 +59,7 @@ class QuotaExceededError extends SparkVaultError {
|
|
|
59
59
|
this.name = 'QuotaExceededError';
|
|
60
60
|
const resource = details?.resource;
|
|
61
61
|
this.resource =
|
|
62
|
-
resource === 'storage' ||
|
|
63
|
-
resource === 'bandwidth' ||
|
|
64
|
-
resource === 'seats' ||
|
|
65
|
-
resource === 'identity'
|
|
66
|
-
? resource
|
|
67
|
-
: undefined;
|
|
62
|
+
resource === 'storage' || resource === 'bandwidth' ? resource : undefined;
|
|
68
63
|
Object.setPrototypeOf(this, QuotaExceededError.prototype);
|
|
69
64
|
}
|
|
70
65
|
}
|
|
@@ -12870,6 +12865,7 @@ class IngotsModule {
|
|
|
12870
12865
|
const query = buildQuery$1({
|
|
12871
12866
|
q: options.q,
|
|
12872
12867
|
file_type: options.fileType,
|
|
12868
|
+
folder_id: options.folderId,
|
|
12873
12869
|
min_size: options.minSize,
|
|
12874
12870
|
max_size: options.maxSize,
|
|
12875
12871
|
limit: options.limit,
|