@sparkvault/sdk-js 15.7.1 → 15.8.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/README.md +126 -0
- package/dist/index.cjs +519 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +353 -6
- package/dist/index.mjs +518 -6
- package/dist/index.mjs.map +1 -1
- package/dist/products/index.d.ts +5 -0
- package/dist/products/structured-ingots/index.d.ts +33 -0
- package/dist/products/structured-ingots/types-client.d.ts +19 -0
- package/dist/products/structured-ingots/types.d.ts +279 -0
- package/dist/products/structured-ingots/validation.d.ts +21 -0
- package/dist/sparks/index.d.ts +4 -3
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/index.d.ts +11 -0
- package/dist/vaults/types.d.ts +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1084,6 +1084,10 @@ interface VaultSummary extends VaultLifecycle {
|
|
|
1084
1084
|
ingotCount: number;
|
|
1085
1085
|
/** Total storage used in bytes */
|
|
1086
1086
|
storageBytes: number;
|
|
1087
|
+
/** Previous versions retained per structured object; absent on older servers. */
|
|
1088
|
+
structuredIngotVersionLimit?: number;
|
|
1089
|
+
/** Whether this vault uses the Structured Ingots browser, including when empty. */
|
|
1090
|
+
structuredIngotsEnabled?: boolean;
|
|
1087
1091
|
}
|
|
1088
1092
|
/** Options for list. */
|
|
1089
1093
|
interface ListVaultsOptions {
|
|
@@ -1111,6 +1115,10 @@ interface VaultDetail extends VaultLifecycle {
|
|
|
1111
1115
|
ingotCount: number;
|
|
1112
1116
|
/** Total storage used in bytes */
|
|
1113
1117
|
storageBytes: number;
|
|
1118
|
+
/** Previous versions retained per structured object, in addition to current content. */
|
|
1119
|
+
structuredIngotVersionLimit?: number;
|
|
1120
|
+
/** Whether this vault is enabled for Structured Ingots, independent of record count. */
|
|
1121
|
+
structuredIngotsEnabled?: boolean;
|
|
1114
1122
|
/** Creation timestamp (Unix seconds) */
|
|
1115
1123
|
createdAt: number;
|
|
1116
1124
|
/** Last unseal timestamp (Unix seconds), or null */
|
|
@@ -3844,6 +3852,331 @@ declare class HelpDeskModule {
|
|
|
3844
3852
|
attach(selector: string, options: HelpDeskOpenFormOptions): () => void;
|
|
3845
3853
|
}
|
|
3846
3854
|
|
|
3855
|
+
/** JSON values travel without implicit coercion. Binary leaves use explicit paths. */
|
|
3856
|
+
type StructuredJsonValue = null | boolean | number | string | StructuredJsonValue[] | {
|
|
3857
|
+
[key: string]: StructuredJsonValue;
|
|
3858
|
+
};
|
|
3859
|
+
type StructuredValues = Record<string, StructuredJsonValue>;
|
|
3860
|
+
type StructuredBinaryPath = Array<string | number>;
|
|
3861
|
+
interface StructuredTypePin {
|
|
3862
|
+
typeId: string;
|
|
3863
|
+
version: number;
|
|
3864
|
+
}
|
|
3865
|
+
interface StructuredPageOptions {
|
|
3866
|
+
limit?: number;
|
|
3867
|
+
cursor?: string;
|
|
3868
|
+
}
|
|
3869
|
+
interface StructuredIterateOptions extends StructuredPageOptions {
|
|
3870
|
+
/** Bound continuation tracking; default 10,000 pages, maximum 100,000. */
|
|
3871
|
+
maxPages?: number;
|
|
3872
|
+
}
|
|
3873
|
+
interface StructuredPage<T> {
|
|
3874
|
+
items: T[];
|
|
3875
|
+
count: number;
|
|
3876
|
+
nextCursor: string | null;
|
|
3877
|
+
hasMore: boolean;
|
|
3878
|
+
}
|
|
3879
|
+
interface StructuredIngotSummary {
|
|
3880
|
+
id: string;
|
|
3881
|
+
name: string;
|
|
3882
|
+
sizeBytes: number;
|
|
3883
|
+
createdAt: number;
|
|
3884
|
+
updatedAt: number | null;
|
|
3885
|
+
}
|
|
3886
|
+
interface StructuredIngot<T extends object = StructuredValues> {
|
|
3887
|
+
id: string;
|
|
3888
|
+
name: string;
|
|
3889
|
+
version: number;
|
|
3890
|
+
keyCount: number;
|
|
3891
|
+
values: T;
|
|
3892
|
+
missingKeys: string[];
|
|
3893
|
+
/** Each path identifies a base64 string representing binary bytes. */
|
|
3894
|
+
binaryPaths: StructuredBinaryPath[];
|
|
3895
|
+
type: StructuredTypePin | null;
|
|
3896
|
+
createdAt: number;
|
|
3897
|
+
updatedAt: number;
|
|
3898
|
+
}
|
|
3899
|
+
interface StructuredIngotMutation {
|
|
3900
|
+
id: string;
|
|
3901
|
+
version: number;
|
|
3902
|
+
keyCount: number;
|
|
3903
|
+
type: StructuredTypePin | null;
|
|
3904
|
+
createdAt?: number;
|
|
3905
|
+
updatedAt?: number;
|
|
3906
|
+
created?: boolean;
|
|
3907
|
+
/** A creation receipt replay; its version is not a fresh read of current content. */
|
|
3908
|
+
replayed?: boolean;
|
|
3909
|
+
}
|
|
3910
|
+
interface GetStructuredIngotOptions {
|
|
3911
|
+
keys?: string[];
|
|
3912
|
+
}
|
|
3913
|
+
interface CreateStructuredIngotOptions<T extends object = StructuredValues> {
|
|
3914
|
+
name: string;
|
|
3915
|
+
data: T;
|
|
3916
|
+
type?: StructuredTypePin | null;
|
|
3917
|
+
binaryPaths?: StructuredBinaryPath[];
|
|
3918
|
+
/** 8–128 printable ASCII characters; bound to this name and semantic payload. */
|
|
3919
|
+
idempotencyKey?: string;
|
|
3920
|
+
}
|
|
3921
|
+
interface PatchStructuredIngotOptions<T extends object = StructuredValues> {
|
|
3922
|
+
expectedVersion: number;
|
|
3923
|
+
set?: Partial<T>;
|
|
3924
|
+
delete?: string[];
|
|
3925
|
+
/** Omitted preserves the current type; null explicitly removes it. */
|
|
3926
|
+
type?: StructuredTypePin | null;
|
|
3927
|
+
/** Paths are relative to the `set` object. */
|
|
3928
|
+
binaryPaths?: StructuredBinaryPath[];
|
|
3929
|
+
}
|
|
3930
|
+
interface StructuredIngotVersion {
|
|
3931
|
+
versionId: string;
|
|
3932
|
+
publishedAt: number;
|
|
3933
|
+
sizeBytes: number;
|
|
3934
|
+
}
|
|
3935
|
+
interface StructuredIngotHistory {
|
|
3936
|
+
id: string;
|
|
3937
|
+
versionLimit: number;
|
|
3938
|
+
versions: StructuredIngotVersion[];
|
|
3939
|
+
}
|
|
3940
|
+
type StructuredActivityPeriod = '24h' | '7d';
|
|
3941
|
+
interface StructuredActivityOptions {
|
|
3942
|
+
period?: StructuredActivityPeriod;
|
|
3943
|
+
}
|
|
3944
|
+
interface StructuredActivityTotals {
|
|
3945
|
+
requests: number;
|
|
3946
|
+
reads: number;
|
|
3947
|
+
writes: number;
|
|
3948
|
+
errors: number;
|
|
3949
|
+
conflicts: number;
|
|
3950
|
+
averageLatencyMs: number | null;
|
|
3951
|
+
p95UpperBoundMs: number | null;
|
|
3952
|
+
p95Overflow: boolean;
|
|
3953
|
+
}
|
|
3954
|
+
interface StructuredActivity {
|
|
3955
|
+
period: StructuredActivityPeriod;
|
|
3956
|
+
interval: 'hour' | 'day';
|
|
3957
|
+
asOf: number;
|
|
3958
|
+
windowStart: number;
|
|
3959
|
+
windowEnd: number;
|
|
3960
|
+
totals: StructuredActivityTotals;
|
|
3961
|
+
series: Array<StructuredActivityTotals & {
|
|
3962
|
+
start: number;
|
|
3963
|
+
end: number;
|
|
3964
|
+
}>;
|
|
3965
|
+
}
|
|
3966
|
+
interface StructuredAccountActivity extends StructuredActivity {
|
|
3967
|
+
scope: 'account';
|
|
3968
|
+
}
|
|
3969
|
+
interface StructuredVaultActivity extends StructuredActivity {
|
|
3970
|
+
vaultId: string;
|
|
3971
|
+
objectCount: number | null;
|
|
3972
|
+
vaultStorageBytes: number;
|
|
3973
|
+
}
|
|
3974
|
+
interface StructuredTypeTransform {
|
|
3975
|
+
/** JSON Pointer to a field; transformations are explicit and ordered. */
|
|
3976
|
+
path: string;
|
|
3977
|
+
operations: Array<'trim' | 'lowercase' | 'uppercase'>;
|
|
3978
|
+
}
|
|
3979
|
+
interface StructuredTypeSummary {
|
|
3980
|
+
typeId: string;
|
|
3981
|
+
name: string;
|
|
3982
|
+
createdAt: number;
|
|
3983
|
+
updatedAt: number | null;
|
|
3984
|
+
}
|
|
3985
|
+
interface StructuredTypeDefinition extends StructuredTypeSummary {
|
|
3986
|
+
version: number;
|
|
3987
|
+
latestVersion: number;
|
|
3988
|
+
archived: boolean;
|
|
3989
|
+
schema: StructuredValues;
|
|
3990
|
+
transforms: StructuredTypeTransform[];
|
|
3991
|
+
}
|
|
3992
|
+
interface StructuredTypeCreation extends StructuredTypeDefinition {
|
|
3993
|
+
created: boolean;
|
|
3994
|
+
/** Original version-one receipt; use types.get for current metadata. */
|
|
3995
|
+
replayed?: boolean;
|
|
3996
|
+
}
|
|
3997
|
+
interface CreateStructuredTypeOptions {
|
|
3998
|
+
name: string;
|
|
3999
|
+
schema: StructuredValues;
|
|
4000
|
+
transforms?: StructuredTypeTransform[];
|
|
4001
|
+
/** 8–128 printable ASCII characters; bound to this name and definition. */
|
|
4002
|
+
idempotencyKey?: string;
|
|
4003
|
+
}
|
|
4004
|
+
interface PublishStructuredTypeOptions {
|
|
4005
|
+
expectedVersion: number;
|
|
4006
|
+
schema: StructuredValues;
|
|
4007
|
+
transforms?: StructuredTypeTransform[];
|
|
4008
|
+
}
|
|
4009
|
+
type StructuredOutcome<T> = {
|
|
4010
|
+
ok: true;
|
|
4011
|
+
value: T;
|
|
4012
|
+
} | {
|
|
4013
|
+
ok: false;
|
|
4014
|
+
error: unknown;
|
|
4015
|
+
};
|
|
4016
|
+
type StructuredReadOutcome<T extends object = StructuredValues> = StructuredOutcome<StructuredIngot<T>> & {
|
|
4017
|
+
ref: string;
|
|
4018
|
+
};
|
|
4019
|
+
interface BatchGetStructuredIngotsOptions extends GetStructuredIngotOptions {
|
|
4020
|
+
/** Default 4; maximum 8 simultaneous requests. At most 100 references. */
|
|
4021
|
+
concurrency?: number;
|
|
4022
|
+
}
|
|
4023
|
+
interface PortableStructuredType {
|
|
4024
|
+
name: string;
|
|
4025
|
+
schema: StructuredValues;
|
|
4026
|
+
transforms: StructuredTypeTransform[];
|
|
4027
|
+
source: StructuredTypePin;
|
|
4028
|
+
}
|
|
4029
|
+
interface PortableStructuredIngot {
|
|
4030
|
+
format: 'sparkvault-structured-ingot';
|
|
4031
|
+
formatVersion: 1;
|
|
4032
|
+
name: string;
|
|
4033
|
+
data: StructuredValues;
|
|
4034
|
+
binaryPaths: StructuredBinaryPath[];
|
|
4035
|
+
type: PortableStructuredType | null;
|
|
4036
|
+
source: {
|
|
4037
|
+
id: string;
|
|
4038
|
+
version: number;
|
|
4039
|
+
};
|
|
4040
|
+
}
|
|
4041
|
+
type StructuredExportOutcome = {
|
|
4042
|
+
ok: true;
|
|
4043
|
+
record: PortableStructuredIngot;
|
|
4044
|
+
} | {
|
|
4045
|
+
ok: false;
|
|
4046
|
+
id: string;
|
|
4047
|
+
error: unknown;
|
|
4048
|
+
};
|
|
4049
|
+
interface ImportStructuredIngotsOptions {
|
|
4050
|
+
/** Required for typed records. Resolve or create an explicit destination type. */
|
|
4051
|
+
mapType?: (definition: PortableStructuredType) => StructuredTypePin | Promise<StructuredTypePin>;
|
|
4052
|
+
/** Return a stable key for retrying this exact record; the SDK never invents one. */
|
|
4053
|
+
idempotencyKey?: (record: PortableStructuredIngot) => string | undefined;
|
|
4054
|
+
}
|
|
4055
|
+
type StructuredImportOutcome = StructuredOutcome<StructuredIngotMutation> & {
|
|
4056
|
+
index: number;
|
|
4057
|
+
name: string | null;
|
|
4058
|
+
};
|
|
4059
|
+
interface StructuredTypePinWire {
|
|
4060
|
+
type_id: string;
|
|
4061
|
+
version: number;
|
|
4062
|
+
}
|
|
4063
|
+
interface StructuredIngotSummaryWire {
|
|
4064
|
+
ingot_id: string;
|
|
4065
|
+
name: string;
|
|
4066
|
+
size_bytes: number;
|
|
4067
|
+
created_at: number;
|
|
4068
|
+
updated_at?: number | null;
|
|
4069
|
+
}
|
|
4070
|
+
interface StructuredIngotWire<T extends object = StructuredValues> {
|
|
4071
|
+
ingot_id: string;
|
|
4072
|
+
name: string;
|
|
4073
|
+
version: number;
|
|
4074
|
+
key_count: number;
|
|
4075
|
+
values: T;
|
|
4076
|
+
missing_keys: string[];
|
|
4077
|
+
binary_paths?: StructuredBinaryPath[];
|
|
4078
|
+
binary_keys?: string[];
|
|
4079
|
+
type?: StructuredTypePinWire | null;
|
|
4080
|
+
inline: boolean;
|
|
4081
|
+
created_at: number;
|
|
4082
|
+
updated_at: number;
|
|
4083
|
+
}
|
|
4084
|
+
interface StructuredMutationWire {
|
|
4085
|
+
ingot_id: string;
|
|
4086
|
+
version: number;
|
|
4087
|
+
key_count: number;
|
|
4088
|
+
type?: StructuredTypePinWire | null;
|
|
4089
|
+
created_at?: number;
|
|
4090
|
+
updated_at?: number;
|
|
4091
|
+
created?: boolean;
|
|
4092
|
+
replayed?: boolean;
|
|
4093
|
+
}
|
|
4094
|
+
interface StructuredTypeSummaryWire {
|
|
4095
|
+
type_id: string;
|
|
4096
|
+
name: string;
|
|
4097
|
+
created_at: number;
|
|
4098
|
+
updated_at: number | null;
|
|
4099
|
+
}
|
|
4100
|
+
interface StructuredTypeDefinitionWire extends StructuredTypeSummaryWire {
|
|
4101
|
+
version: number;
|
|
4102
|
+
latest_version: number;
|
|
4103
|
+
archived: boolean;
|
|
4104
|
+
schema: StructuredValues;
|
|
4105
|
+
transforms: StructuredTypeTransform[];
|
|
4106
|
+
}
|
|
4107
|
+
interface StructuredPageWire {
|
|
4108
|
+
count: number;
|
|
4109
|
+
next_cursor?: string | null;
|
|
4110
|
+
has_more: boolean;
|
|
4111
|
+
}
|
|
4112
|
+
interface StructuredActivityTotalsWire {
|
|
4113
|
+
requests: number;
|
|
4114
|
+
reads: number;
|
|
4115
|
+
writes: number;
|
|
4116
|
+
errors: number;
|
|
4117
|
+
conflicts: number;
|
|
4118
|
+
average_latency_ms: number | null;
|
|
4119
|
+
p95_upper_bound_ms: number | null;
|
|
4120
|
+
p95_overflow: boolean;
|
|
4121
|
+
}
|
|
4122
|
+
interface StructuredActivityWire {
|
|
4123
|
+
period: StructuredActivityPeriod;
|
|
4124
|
+
interval: 'hour' | 'day';
|
|
4125
|
+
as_of: number;
|
|
4126
|
+
window_start: number;
|
|
4127
|
+
window_end: number;
|
|
4128
|
+
totals: StructuredActivityTotalsWire;
|
|
4129
|
+
series: Array<StructuredActivityTotalsWire & {
|
|
4130
|
+
start: number;
|
|
4131
|
+
end: number;
|
|
4132
|
+
}>;
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
/** Definitions live inside the same encrypted vault as the records they validate. */
|
|
4136
|
+
declare class StructuredIngotTypesModule {
|
|
4137
|
+
private readonly http;
|
|
4138
|
+
constructor(http: HttpClient);
|
|
4139
|
+
list(vault: UnsealedVault, options?: StructuredPageOptions): Promise<StructuredPage<StructuredTypeSummary>>;
|
|
4140
|
+
iterate(vault: UnsealedVault, options?: StructuredIterateOptions): AsyncGenerator<StructuredTypeSummary>;
|
|
4141
|
+
get(vault: UnsealedVault, typeId: string, options?: {
|
|
4142
|
+
version?: number;
|
|
4143
|
+
}): Promise<StructuredTypeDefinition>;
|
|
4144
|
+
create(vault: UnsealedVault, options: CreateStructuredTypeOptions): Promise<StructuredTypeCreation>;
|
|
4145
|
+
publish(vault: UnsealedVault, typeId: string, options: PublishStructuredTypeOptions): Promise<StructuredTypeDefinition>;
|
|
4146
|
+
archive(vault: UnsealedVault, typeId: string): Promise<{
|
|
4147
|
+
typeId: string;
|
|
4148
|
+
archived: true;
|
|
4149
|
+
}>;
|
|
4150
|
+
}
|
|
4151
|
+
|
|
4152
|
+
/** Typed record operations using the caller's existing account and vault session. */
|
|
4153
|
+
declare class StructuredIngotsModule {
|
|
4154
|
+
private readonly http;
|
|
4155
|
+
readonly types: StructuredIngotTypesModule;
|
|
4156
|
+
constructor(http: HttpClient);
|
|
4157
|
+
/** Approximate account activity; requires an account credential, not a scoped service key. */
|
|
4158
|
+
activity(options?: StructuredActivityOptions): Promise<StructuredAccountActivity>;
|
|
4159
|
+
/** Approximate operational counters for one authorized, unsealed vault. */
|
|
4160
|
+
vaultActivity(vault: UnsealedVault, options?: StructuredActivityOptions): Promise<StructuredVaultActivity>;
|
|
4161
|
+
get<T extends object = StructuredValues>(vault: UnsealedVault, ref: string, options?: GetStructuredIngotOptions): Promise<StructuredIngot<T>>;
|
|
4162
|
+
list(vault: UnsealedVault, options?: StructuredPageOptions): Promise<StructuredPage<StructuredIngotSummary>>;
|
|
4163
|
+
iterate(vault: UnsealedVault, options?: StructuredIterateOptions): AsyncGenerator<StructuredIngotSummary>;
|
|
4164
|
+
/** Names use the server's documented Unicode caseless matching rules. */
|
|
4165
|
+
create<T extends object = StructuredValues>(vault: UnsealedVault, options: CreateStructuredIngotOptions<T>): Promise<StructuredIngotMutation>;
|
|
4166
|
+
patch<T extends object = StructuredValues>(vault: UnsealedVault, ref: string, options: PatchStructuredIngotOptions<T>): Promise<StructuredIngotMutation>;
|
|
4167
|
+
delete(vault: UnsealedVault, ref: string): Promise<void>;
|
|
4168
|
+
history(vault: UnsealedVault, ref: string): Promise<StructuredIngotHistory>;
|
|
4169
|
+
restore(vault: UnsealedVault, ref: string, versionId: string, options: {
|
|
4170
|
+
expectedVersion: number;
|
|
4171
|
+
}): Promise<StructuredIngotMutation>;
|
|
4172
|
+
/** Bounded parallel reads with independent, ordered success/error outcomes. */
|
|
4173
|
+
batchGet<T extends object = StructuredValues>(vault: UnsealedVault, refs: string[], options?: BatchGetStructuredIngotsOptions): Promise<StructuredReadOutcome<T>[]>;
|
|
4174
|
+
/** Sequential record reads, not a transactionally consistent vault snapshot. */
|
|
4175
|
+
exportRecords(vault: UnsealedVault, options?: StructuredIterateOptions): AsyncGenerator<StructuredExportOutcome>;
|
|
4176
|
+
/** Imports create records. Existing names fail; typed imports need explicit mapping. */
|
|
4177
|
+
importRecords(vault: UnsealedVault, records: AsyncIterable<PortableStructuredIngot> | Iterable<PortableStructuredIngot>, options?: ImportStructuredIngotsOptions): AsyncGenerator<StructuredImportOutcome>;
|
|
4178
|
+
}
|
|
4179
|
+
|
|
3847
4180
|
/**
|
|
3848
4181
|
* Products Module
|
|
3849
4182
|
*
|
|
@@ -3863,6 +4196,8 @@ declare class ProductsModule {
|
|
|
3863
4196
|
readonly notify: NotifyProductModule;
|
|
3864
4197
|
/** Customer-only help desk API and optional injected ticket form. */
|
|
3865
4198
|
readonly helpDesk: HelpDeskModule;
|
|
4199
|
+
/** Encrypted structured records, optional types, and retained object history. */
|
|
4200
|
+
readonly structuredIngots: StructuredIngotsModule;
|
|
3866
4201
|
/**
|
|
3867
4202
|
* `http` defaults to a client over the same resolved config so constructing
|
|
3868
4203
|
* this module standalone stays a one-argument call.
|
|
@@ -4117,6 +4452,17 @@ declare class VaultsModule {
|
|
|
4117
4452
|
* Null values inherit system defaults; zero idle seconds disables extensions.
|
|
4118
4453
|
*/
|
|
4119
4454
|
updateResealSettings(vaultId: string, settings: VaultResealSettings): Promise<VaultResealSettingsResult>;
|
|
4455
|
+
/**
|
|
4456
|
+
* Retain this many previous versions of each structured object (0–50).
|
|
4457
|
+
* Interactive company administrators only. Applies on each object's next
|
|
4458
|
+
* successful change; retained versions count toward storage usage.
|
|
4459
|
+
*/
|
|
4460
|
+
updateStructuredIngotSettings(vaultId: string, settings: {
|
|
4461
|
+
versionLimit: number;
|
|
4462
|
+
}): Promise<{
|
|
4463
|
+
vaultId: string;
|
|
4464
|
+
versionLimit: number;
|
|
4465
|
+
}>;
|
|
4120
4466
|
/**
|
|
4121
4467
|
* Rename a vault.
|
|
4122
4468
|
*
|
|
@@ -5166,8 +5512,8 @@ interface SparkInviteResend {
|
|
|
5166
5512
|
* Sparks Module
|
|
5167
5513
|
*
|
|
5168
5514
|
* Create, read, share, and delete ephemeral secrets, sealed server-side under
|
|
5169
|
-
* platform-held keys and read once. Sparks are account-scoped
|
|
5170
|
-
*
|
|
5515
|
+
* platform-held keys and read once. Ordinary Sparks are account-scoped;
|
|
5516
|
+
* values derived from Structured Ingots require the source vault's VAT.
|
|
5171
5517
|
*/
|
|
5172
5518
|
|
|
5173
5519
|
declare class SparksModule {
|
|
@@ -5183,12 +5529,13 @@ declare class SparksModule {
|
|
|
5183
5529
|
/**
|
|
5184
5530
|
* Read (and burn) a spark. Reading is destructive — the spark can be read
|
|
5185
5531
|
* exactly once.
|
|
5532
|
+
* Supply the source vault's VAT for a Structured Ingots field Spark.
|
|
5186
5533
|
*
|
|
5187
5534
|
* @example
|
|
5188
5535
|
* const spark = await sv.sparks.get('spk_abc');
|
|
5189
5536
|
* console.log(spark.payload);
|
|
5190
5537
|
*/
|
|
5191
|
-
get(sparkId: string): Promise<Spark>;
|
|
5538
|
+
get(sparkId: string, vat?: string): Promise<Spark>;
|
|
5192
5539
|
/**
|
|
5193
5540
|
* Create a spark. A link spark (contentType text/uri-list, the payload its
|
|
5194
5541
|
* destination URL) is created with its x.sv link, `linkUrl`.
|
|
@@ -5529,7 +5876,7 @@ declare const logger: {
|
|
|
5529
5876
|
*/
|
|
5530
5877
|
|
|
5531
5878
|
declare class SparkVault {
|
|
5532
|
-
/** First-party
|
|
5879
|
+
/** First-party Identity, Notify, Help Desk, and Structured Ingots products. */
|
|
5533
5880
|
readonly products: ProductsModule;
|
|
5534
5881
|
/** Encrypted vault control plane (create, unseal, sharing, upload config). */
|
|
5535
5882
|
readonly vaults: VaultsModule;
|
|
@@ -5582,5 +5929,5 @@ declare global {
|
|
|
5582
5929
|
}
|
|
5583
5930
|
}
|
|
5584
5931
|
|
|
5585
|
-
export { AuthenticationError, AuthorizationError, EntropyModule, FoldersModule, HelpDeskClient, HelpDeskModule, IdentityModule, IdentityProviderError, IngotsModule, NAME_CONFLICT_POLICIES, NOTIFY_PRESETS, NetworkError, NotifyModule, NotifyProductModule, NotifyProjectsModule, NotifySubscriptionRequiredError, PlanRequiredError, PopupBlockedError, ProductsModule, QuotaExceededError, SparkVault, SparkVaultError, SparksModule, TimeoutError, UnauthorizedError, UsageCreditFundingReviewError, UsageCreditsExhaustedError, UserCancelledError, ValidationError, VaultsModule, buildNotifyPresetSend, SparkVault as default, fetchDownload, isReceivedUploadFailure, logger, setDebugMode };
|
|
5586
|
-
export type { AccessLogRetention, AccessLogsOptions, CreateFolderOptions, CreateNotifyProjectOptions, CreateNotifySendOptions, CreateSparkOptions, CreateUploadOptions, CreateVaultOptions, CreatedIngot, CreatedSpark, DownloadIngotOptions, EntropyFormat, EntropyResult, FetchDownloadOptions, FetchedDownload, Folder, FolderBreadcrumbItem, FolderContents, FolderPage, GenerateEntropyOptions, HealthCheckOptions, HealthCheckResult, HelpDeskAttachmentDownload, HelpDeskAttachmentInput, HelpDeskAttachmentUpload, HelpDeskConnectOptions, HelpDeskCreateTicketOptions, HelpDeskCustomer, HelpDeskCustomerPatch, HelpDeskDesk, HelpDeskDraft, HelpDeskEvent, HelpDeskExternalChallenge, HelpDeskExternalIdentity, HelpDeskFormHandle, HelpDeskFormOptions, HelpDeskFormState, HelpDeskIdentityRequest, HelpDeskListTicketsOptions, HelpDeskMountFormOptions, HelpDeskOpenFormOptions, HelpDeskPinChallenge, HelpDeskReplyCreated, HelpDeskReplyOptions, HelpDeskRequestContext, HelpDeskSession, HelpDeskSessionChange, HelpDeskSupportHandle, HelpDeskSupportLauncherOptions, HelpDeskSupportOpenOptions, HelpDeskSupportOptions, HelpDeskSupportStage, HelpDeskSupportState, HelpDeskTicket, HelpDeskTicketCreated, HelpDeskTicketDetail, HelpDeskTicketList, HelpDeskTimeline, HelpDeskVerifyPinOptions, HelpDeskWidgetFormIdentity, HelpDeskWidgetIdentityChallenge, HelpDeskWidgetIdentityOptions, HelpDeskWidgetIdentitySession, AttachOptions as IdentityAttachOptions, Ingot, IngotAccessLog, IngotAccessLogPage, IngotDownloadLink, IngotInvitation, IngotInvite, IngotPage, IngotSharingConfig, IngotUpload, ListContentsOptions, ListFoldersOptions, ListIngotsOptions, ListNotificationsOptions, ListNotificationsResponse, ListNotifyInboxOptions, ListNotifyInboxResponse, ListNotifyProjectsResponse, ListNotifyReceiptsOptions, ListNotifyReceiptsResponse, ListNotifySendsOptions, ListNotifySendsResponse, ListSparksOptions, MarkAllNotificationsStateOptions, MarkAllNotificationsStateResponse, MarkAllReadResult, MarkNotificationStateOptions, MarkNotificationStateResponse, MarkNotifyInboxAllOptions, MarkNotifyInboxAllResponse, MarkNotifyInboxStateOptions, MarkNotifyInboxStateResponse, NameConflictPolicy, NotificationBulkMarkState, NotificationInboxState, NotificationMarkState, NotificationRow, NotificationSender, NotifyCategory, NotifyChannel, NotifyConfig, NotifyConfigCategory, NotifyConfigDelivery, NotifyConfigDeliveryPatch, NotifyConfigDestinations, NotifyConfigDestinationsPatch, NotifyConfigEvents, NotifyConfigEventsRead, NotifyConfigHistory, NotifyConfigOverrides, NotifyConfigPatch, NotifyConfigRealtimeFallbackDelay, NotifyConfigReliability, NotifyConfigResponse, NotifyConfigSecurity, NotifyDeliveryMode, NotifyDestinationFailureReason, NotifyDestinationKind, NotifyDestinationReason, NotifyDestinationSkipReason, NotifyDestinationState, NotifyDestinationTestReason, NotifyDestinationTestResult, NotifyDestinationTransportReason, NotifyEscalation, NotifyInboxBulkMarkState, NotifyInboxMarkState, NotifyInboxRow, NotifyInboxView, NotifyIngotRef, NotifyInteraction, NotifyPreset, NotifyPresetCategory, NotifyPresetName, NotifyPresetSendOptions, NotifyProject, NotifyProjectBilling, NotifyProjectStatus, NotifyProjectSubscriptionPreview, NotifyProjectSubscriptionResponse, NotifyProjectUsage, NotifyRecallMode, NotifyReceipt, NotifyReceiptEventType, NotifyRecipient, NotifyRecipientRef, NotifyRecipientState, NotifyReportableVerificationLevel, NotifySendContent, NotifySendPolicy, NotifySendReceipt, NotifySendReceiptsResponse, NotifySendResult, NotifySendState, NotifySendStatus, NotifySendStatusCounts, NotifySendStatusDestination, NotifySendStatusRecipient, NotifySendSummary, NotifySendSummaryDestination, NotifySlackDestination, NotifySuppressionReason, NotifyTeamsDestination, NotifyTeamsDestinationRead, NotifyVerificationLevel, NotifyWebhookDestination, NotifyWebhookDestinationRead, PreviewNotifyProjectSubscriptionOptions, QuotaResource, RecallNotifySendOptions, RecallNotifySendResponse, RegisterWebPushResponse, ReplaceIngotOptions, ResumeUploadOptions, ScheduledVaultDeletion, SearchIngotsOptions, SendUploadOptions, ShareSparkOptions, SignInOptions, SignInResult, Spark, SparkInviteResend, SparkLinkActionOptions, SparkPage, SparkShare, SparkSummary, SparkVaultConfig, SparkVisibility, StartedVaultDeletion, SubscribeNotifyProjectOptions, SubscribeWebPushOptions, SubscribeWebPushResult, SubscribeWebPushStatus, TokenClaims, UnreachedAdmin, UnreadCountResponse, UnsealVaultOptions, UnsealedVault, UnsubscribeWebPushResponse, UpdateFolderOptions, UpdateIngotSharingOptions, UpdateNotifyProjectOptions, UpdateVaultUploadOptions, UpdatedVault, UploadAttachOptions, UploadBranding, UploadEnd, UploadIngotOptions, UploadOptions, UploadProgress, UploadResult, UploadSession, Vault, VaultDetail, VaultLifecycle, VaultResealDefaults, VaultResealSettings, VaultResealSettingsResult, VaultSessionExtension, VaultSessionTiming, VaultSharingConfig, VaultSharingOptions, VaultSummary, VaultUploadConfig, VaultUploadSettings, VerifyOptions, VerifyResult, WebPushKeyResponse, WebPushStatus, WebPushStatusOptions, WebPushStatusResult, WebPushSubscriptionInput };
|
|
5932
|
+
export { AuthenticationError, AuthorizationError, EntropyModule, FoldersModule, HelpDeskClient, HelpDeskModule, IdentityModule, IdentityProviderError, IngotsModule, NAME_CONFLICT_POLICIES, NOTIFY_PRESETS, NetworkError, NotifyModule, NotifyProductModule, NotifyProjectsModule, NotifySubscriptionRequiredError, PlanRequiredError, PopupBlockedError, ProductsModule, QuotaExceededError, SparkVault, SparkVaultError, SparksModule, StructuredIngotTypesModule, StructuredIngotsModule, TimeoutError, UnauthorizedError, UsageCreditFundingReviewError, UsageCreditsExhaustedError, UserCancelledError, ValidationError, VaultsModule, buildNotifyPresetSend, SparkVault as default, fetchDownload, isReceivedUploadFailure, logger, setDebugMode };
|
|
5933
|
+
export type { AccessLogRetention, AccessLogsOptions, BatchGetStructuredIngotsOptions, CreateFolderOptions, CreateNotifyProjectOptions, CreateNotifySendOptions, CreateSparkOptions, CreateStructuredIngotOptions, CreateStructuredTypeOptions, CreateUploadOptions, CreateVaultOptions, CreatedIngot, CreatedSpark, DownloadIngotOptions, EntropyFormat, EntropyResult, FetchDownloadOptions, FetchedDownload, Folder, FolderBreadcrumbItem, FolderContents, FolderPage, GenerateEntropyOptions, GetStructuredIngotOptions, HealthCheckOptions, HealthCheckResult, HelpDeskAttachmentDownload, HelpDeskAttachmentInput, HelpDeskAttachmentUpload, HelpDeskConnectOptions, HelpDeskCreateTicketOptions, HelpDeskCustomer, HelpDeskCustomerPatch, HelpDeskDesk, HelpDeskDraft, HelpDeskEvent, HelpDeskExternalChallenge, HelpDeskExternalIdentity, HelpDeskFormHandle, HelpDeskFormOptions, HelpDeskFormState, HelpDeskIdentityRequest, HelpDeskListTicketsOptions, HelpDeskMountFormOptions, HelpDeskOpenFormOptions, HelpDeskPinChallenge, HelpDeskReplyCreated, HelpDeskReplyOptions, HelpDeskRequestContext, HelpDeskSession, HelpDeskSessionChange, HelpDeskSupportHandle, HelpDeskSupportLauncherOptions, HelpDeskSupportOpenOptions, HelpDeskSupportOptions, HelpDeskSupportStage, HelpDeskSupportState, HelpDeskTicket, HelpDeskTicketCreated, HelpDeskTicketDetail, HelpDeskTicketList, HelpDeskTimeline, HelpDeskVerifyPinOptions, HelpDeskWidgetFormIdentity, HelpDeskWidgetIdentityChallenge, HelpDeskWidgetIdentityOptions, HelpDeskWidgetIdentitySession, AttachOptions as IdentityAttachOptions, ImportStructuredIngotsOptions, Ingot, IngotAccessLog, IngotAccessLogPage, IngotDownloadLink, IngotInvitation, IngotInvite, IngotPage, IngotSharingConfig, IngotUpload, ListContentsOptions, ListFoldersOptions, ListIngotsOptions, ListNotificationsOptions, ListNotificationsResponse, ListNotifyInboxOptions, ListNotifyInboxResponse, ListNotifyProjectsResponse, ListNotifyReceiptsOptions, ListNotifyReceiptsResponse, ListNotifySendsOptions, ListNotifySendsResponse, ListSparksOptions, MarkAllNotificationsStateOptions, MarkAllNotificationsStateResponse, MarkAllReadResult, MarkNotificationStateOptions, MarkNotificationStateResponse, MarkNotifyInboxAllOptions, MarkNotifyInboxAllResponse, MarkNotifyInboxStateOptions, MarkNotifyInboxStateResponse, NameConflictPolicy, NotificationBulkMarkState, NotificationInboxState, NotificationMarkState, NotificationRow, NotificationSender, NotifyCategory, NotifyChannel, NotifyConfig, NotifyConfigCategory, NotifyConfigDelivery, NotifyConfigDeliveryPatch, NotifyConfigDestinations, NotifyConfigDestinationsPatch, NotifyConfigEvents, NotifyConfigEventsRead, NotifyConfigHistory, NotifyConfigOverrides, NotifyConfigPatch, NotifyConfigRealtimeFallbackDelay, NotifyConfigReliability, NotifyConfigResponse, NotifyConfigSecurity, NotifyDeliveryMode, NotifyDestinationFailureReason, NotifyDestinationKind, NotifyDestinationReason, NotifyDestinationSkipReason, NotifyDestinationState, NotifyDestinationTestReason, NotifyDestinationTestResult, NotifyDestinationTransportReason, NotifyEscalation, NotifyInboxBulkMarkState, NotifyInboxMarkState, NotifyInboxRow, NotifyInboxView, NotifyIngotRef, NotifyInteraction, NotifyPreset, NotifyPresetCategory, NotifyPresetName, NotifyPresetSendOptions, NotifyProject, NotifyProjectBilling, NotifyProjectStatus, NotifyProjectSubscriptionPreview, NotifyProjectSubscriptionResponse, NotifyProjectUsage, NotifyRecallMode, NotifyReceipt, NotifyReceiptEventType, NotifyRecipient, NotifyRecipientRef, NotifyRecipientState, NotifyReportableVerificationLevel, NotifySendContent, NotifySendPolicy, NotifySendReceipt, NotifySendReceiptsResponse, NotifySendResult, NotifySendState, NotifySendStatus, NotifySendStatusCounts, NotifySendStatusDestination, NotifySendStatusRecipient, NotifySendSummary, NotifySendSummaryDestination, NotifySlackDestination, NotifySuppressionReason, NotifyTeamsDestination, NotifyTeamsDestinationRead, NotifyVerificationLevel, NotifyWebhookDestination, NotifyWebhookDestinationRead, PatchStructuredIngotOptions, PortableStructuredIngot, PortableStructuredType, PreviewNotifyProjectSubscriptionOptions, PublishStructuredTypeOptions, QuotaResource, RecallNotifySendOptions, RecallNotifySendResponse, RegisterWebPushResponse, ReplaceIngotOptions, ResumeUploadOptions, ScheduledVaultDeletion, SearchIngotsOptions, SendUploadOptions, ShareSparkOptions, SignInOptions, SignInResult, Spark, SparkInviteResend, SparkLinkActionOptions, SparkPage, SparkShare, SparkSummary, SparkVaultConfig, SparkVisibility, StartedVaultDeletion, StructuredAccountActivity, StructuredActivity, StructuredActivityOptions, StructuredActivityPeriod, StructuredActivityTotals, StructuredActivityTotalsWire, StructuredActivityWire, StructuredBinaryPath, StructuredExportOutcome, StructuredImportOutcome, StructuredIngot, StructuredIngotHistory, StructuredIngotMutation, StructuredIngotSummary, StructuredIngotSummaryWire, StructuredIngotVersion, StructuredIngotWire, StructuredIterateOptions, StructuredJsonValue, StructuredMutationWire, StructuredOutcome, StructuredPage, StructuredPageOptions, StructuredPageWire, StructuredReadOutcome, StructuredTypeCreation, StructuredTypeDefinition, StructuredTypeDefinitionWire, StructuredTypePin, StructuredTypePinWire, StructuredTypeSummary, StructuredTypeSummaryWire, StructuredTypeTransform, StructuredValues, StructuredVaultActivity, SubscribeNotifyProjectOptions, SubscribeWebPushOptions, SubscribeWebPushResult, SubscribeWebPushStatus, TokenClaims, UnreachedAdmin, UnreadCountResponse, UnsealVaultOptions, UnsealedVault, UnsubscribeWebPushResponse, UpdateFolderOptions, UpdateIngotSharingOptions, UpdateNotifyProjectOptions, UpdateVaultUploadOptions, UpdatedVault, UploadAttachOptions, UploadBranding, UploadEnd, UploadIngotOptions, UploadOptions, UploadProgress, UploadResult, UploadSession, Vault, VaultDetail, VaultLifecycle, VaultResealDefaults, VaultResealSettings, VaultResealSettingsResult, VaultSessionExtension, VaultSessionTiming, VaultSharingConfig, VaultSharingOptions, VaultSummary, VaultUploadConfig, VaultUploadSettings, VerifyOptions, VerifyResult, WebPushKeyResponse, WebPushStatus, WebPushStatusOptions, WebPushStatusResult, WebPushSubscriptionInput };
|