@sparkvault/sdk-js 15.9.1 → 15.11.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 +14 -2
- package/dist/index.cjs +316 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +257 -19
- package/dist/index.mjs +316 -30
- package/dist/index.mjs.map +1 -1
- package/dist/ingots/history.d.ts +4 -0
- package/dist/ingots/index.d.ts +8 -2
- package/dist/ingots/types.d.ts +46 -0
- package/dist/products/index.d.ts +7 -1
- package/dist/products/messaging/index.d.ts +38 -0
- package/dist/products/messaging/types.d.ts +162 -0
- package/dist/products/structured-ingots/types.d.ts +3 -10
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/index.d.ts +10 -3
- package/dist/vaults/types.d.ts +8 -2
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IngotHistory, IngotHistoryResponse } from './types';
|
|
2
|
+
/** Core files and Structured Ingots expose the same retained publication metadata. */
|
|
3
|
+
export declare function mapIngotHistory(data: IngotHistoryResponse): IngotHistory;
|
|
4
|
+
export declare function requireVersionId(value: unknown): string;
|
package/dist/ingots/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type ResolvedConfig } from '../config';
|
|
13
13
|
import { HttpClient } from '../http';
|
|
14
|
-
import type { UnsealedVault, Ingot, IngotUpload, UploadEnd, CreatedIngot, IngotDownloadLink, IngotDownload, DeleteIngotOptions, DownloadIngotOptions, CreateUploadOptions, UploadIngotOptions, SendUploadOptions, ResumeUploadOptions, UploadSession, ReplaceIngotOptions, ListIngotsOptions, ListContentsOptions, FolderContents, SearchIngotsOptions, IngotPage, IngotSharingConfig, UpdateIngotSharingOptions, IngotInvitation, IngotAccessLogPage, AccessLogsOptions, HashCheckResponse } from './types';
|
|
14
|
+
import type { UnsealedVault, Ingot, IngotUpload, UploadEnd, CreatedIngot, IngotDownloadLink, IngotDownload, IngotHistory, IngotVersionDownloadLink, DeleteIngotOptions, DownloadIngotOptions, CreateUploadOptions, UploadIngotOptions, SendUploadOptions, ResumeUploadOptions, UploadSession, ReplaceIngotOptions, ListIngotsOptions, ListContentsOptions, FolderContents, SearchIngotsOptions, IngotPage, IngotSharingConfig, UpdateIngotSharingOptions, IngotInvitation, IngotAccessLogPage, AccessLogsOptions, HashCheckResponse } from './types';
|
|
15
15
|
export declare class IngotsModule {
|
|
16
16
|
private readonly config;
|
|
17
17
|
private readonly http;
|
|
@@ -260,6 +260,12 @@ export declare class IngotsModule {
|
|
|
260
260
|
* } while (pageToken);
|
|
261
261
|
*/
|
|
262
262
|
listContents(vault: UnsealedVault, options?: ListContentsOptions): Promise<FolderContents>;
|
|
263
|
+
/** List previous publications of a file, newest first. Structured objects use their product's history method. */
|
|
264
|
+
listVersions(vault: UnsealedVault, ingotId: string): Promise<IngotHistory>;
|
|
265
|
+
/** Mint a one-use link to a retained file publication; use downloadVersion to verify the served bytes. */
|
|
266
|
+
createVersionDownloadLink(vault: UnsealedVault, ingotId: string, versionId: string): Promise<IngotVersionDownloadLink>;
|
|
267
|
+
/** Download a retained file publication; never substitutes the current bytes if history is unavailable. */
|
|
268
|
+
downloadVersion(vault: UnsealedVault, ingotId: string, versionId: string): Promise<Blob>;
|
|
263
269
|
/**
|
|
264
270
|
* Create a signed download link for an ingot (discrete primitive).
|
|
265
271
|
*
|
|
@@ -379,4 +385,4 @@ export { NAME_CONFLICT_POLICIES } from './types';
|
|
|
379
385
|
export { fetchDownload } from './fetch-download';
|
|
380
386
|
export { isReceivedUploadFailure } from '../vaults/upload/api';
|
|
381
387
|
export type { FetchDownloadOptions, FetchedDownload } from './fetch-download';
|
|
382
|
-
export type { NameConflictPolicy, UnsealedVault, Ingot, IngotUpload, UploadEnd, CreatedIngot, IngotDownloadLink, IngotDownload, DeleteIngotOptions, DownloadIngotOptions, CreateUploadOptions, UploadIngotOptions, SendUploadOptions, ResumeUploadOptions, UploadSession, ReplaceIngotOptions, ListIngotsOptions, ListContentsOptions, FolderContents, SearchIngotsOptions, IngotPage, IngotSharingConfig, UpdateIngotSharingOptions, IngotInvite, IngotInvitation, IngotAccessLog, IngotAccessLogPage, AccessLogsOptions, HashCheckResponse, } from './types';
|
|
388
|
+
export type { NameConflictPolicy, UnsealedVault, Ingot, IngotUpload, UploadEnd, CreatedIngot, IngotDownloadLink, IngotDownload, IngotVersion, IngotHistory, IngotVersionDownloadLink, DeleteIngotOptions, DownloadIngotOptions, CreateUploadOptions, UploadIngotOptions, SendUploadOptions, ResumeUploadOptions, UploadSession, ReplaceIngotOptions, ListIngotsOptions, ListContentsOptions, FolderContents, SearchIngotsOptions, IngotPage, IngotSharingConfig, UpdateIngotSharingOptions, IngotInvite, IngotInvitation, IngotAccessLog, IngotAccessLogPage, AccessLogsOptions, HashCheckResponse, } from './types';
|
package/dist/ingots/types.d.ts
CHANGED
|
@@ -151,6 +151,32 @@ export interface IngotDownload {
|
|
|
151
151
|
blob: Blob;
|
|
152
152
|
revision: string;
|
|
153
153
|
}
|
|
154
|
+
/** One retained publication; current content is not included in version history. */
|
|
155
|
+
export interface IngotVersion {
|
|
156
|
+
versionId: string;
|
|
157
|
+
publishedAt: number;
|
|
158
|
+
sizeBytes: number;
|
|
159
|
+
/** Absent for publications retained before MIME metadata was recorded. */
|
|
160
|
+
contentType?: string;
|
|
161
|
+
}
|
|
162
|
+
export interface IngotHistory {
|
|
163
|
+
id: string;
|
|
164
|
+
/** Maximum previous versions retained on the next successful content change. */
|
|
165
|
+
versionLimit: number;
|
|
166
|
+
/** Retained publications, newest first. */
|
|
167
|
+
versions: IngotVersion[];
|
|
168
|
+
}
|
|
169
|
+
/** A one-use download link bound to a retained publication. */
|
|
170
|
+
export interface IngotVersionDownloadLink {
|
|
171
|
+
id: string;
|
|
172
|
+
downloadUrl: string;
|
|
173
|
+
size: number;
|
|
174
|
+
contentVersion: string;
|
|
175
|
+
revision?: string;
|
|
176
|
+
expiresAt: number;
|
|
177
|
+
name?: string;
|
|
178
|
+
contentType?: string;
|
|
179
|
+
}
|
|
154
180
|
export interface DeleteIngotOptions {
|
|
155
181
|
/** Delete only this object publication. Omitted preserves unconditional deletion. */
|
|
156
182
|
expectedRevision?: string;
|
|
@@ -482,6 +508,26 @@ export interface DownloadIngotResponse {
|
|
|
482
508
|
size_bytes: number;
|
|
483
509
|
content_type: string;
|
|
484
510
|
}
|
|
511
|
+
export interface IngotHistoryResponse {
|
|
512
|
+
ingot_id: string;
|
|
513
|
+
version_limit: number;
|
|
514
|
+
versions: Array<{
|
|
515
|
+
version_id: string;
|
|
516
|
+
published_at: number;
|
|
517
|
+
size_bytes: number;
|
|
518
|
+
content_type?: string;
|
|
519
|
+
}>;
|
|
520
|
+
}
|
|
521
|
+
export interface IngotVersionDownloadResponse {
|
|
522
|
+
ingot_id: string;
|
|
523
|
+
download_url: string;
|
|
524
|
+
size_bytes: number;
|
|
525
|
+
content_version: string;
|
|
526
|
+
revision?: string;
|
|
527
|
+
expires_at: number;
|
|
528
|
+
name?: string;
|
|
529
|
+
content_type?: string;
|
|
530
|
+
}
|
|
485
531
|
/** A sharing answer (apps/api/src/ingots/sharing.js formatSharingConfig). */
|
|
486
532
|
export interface IngotSharingConfigResponse {
|
|
487
533
|
ingot_id: string;
|
package/dist/products/index.d.ts
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Namespace for SparkVault first-party products. Each product is a
|
|
5
5
|
* self-contained surface (UI + API) the account can enable independently.
|
|
6
|
-
* Identity, Notify,
|
|
6
|
+
* Identity, Notify, customer-facing Help Desk, Structured Ingots, and the
|
|
7
|
+
* pre-launch Messaging business API attach here.
|
|
7
8
|
*/
|
|
8
9
|
import type { ResolvedConfig } from '../config';
|
|
9
10
|
import { HttpClient } from '../http';
|
|
@@ -11,6 +12,7 @@ import { IdentityModule } from './identity';
|
|
|
11
12
|
import { NotifyProductModule } from './notify';
|
|
12
13
|
import { HelpDeskModule } from './help-desk';
|
|
13
14
|
import { StructuredIngotsModule } from './structured-ingots';
|
|
15
|
+
import { MessagingModule } from './messaging';
|
|
14
16
|
export declare class ProductsModule {
|
|
15
17
|
/** Identity verification product (passkey, OTP, SparkLink, social). */
|
|
16
18
|
readonly identity: IdentityModule;
|
|
@@ -24,6 +26,8 @@ export declare class ProductsModule {
|
|
|
24
26
|
readonly helpDesk: HelpDeskModule;
|
|
25
27
|
/** Encrypted structured records, optional types, and retained object history. */
|
|
26
28
|
readonly structuredIngots: StructuredIngotsModule;
|
|
29
|
+
/** Authenticated business API for pre-launch Messaging; no recipient widget. */
|
|
30
|
+
readonly messaging: MessagingModule;
|
|
27
31
|
/**
|
|
28
32
|
* `http` defaults to a client over the same resolved config so constructing
|
|
29
33
|
* this module standalone stays a one-argument call.
|
|
@@ -34,6 +38,8 @@ export { IdentityModule } from './identity';
|
|
|
34
38
|
export { NotifyProductModule, NotifyProjectsModule, NOTIFY_PRESETS, buildNotifyPresetSend } from './notify';
|
|
35
39
|
export { HelpDeskModule, HelpDeskClient } from './help-desk';
|
|
36
40
|
export { StructuredIngotsModule, StructuredIngotTypesModule } from './structured-ingots';
|
|
41
|
+
export { MessagingModule } from './messaging';
|
|
42
|
+
export type * from './messaging/types';
|
|
37
43
|
export type * from './structured-ingots/types';
|
|
38
44
|
export type * from './help-desk/types';
|
|
39
45
|
export type * from './help-desk/form-types';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Business-side Messaging operations using the caller's Core JWT or API key.
|
|
3
|
+
* Core brokers the keys and returns plaintext reads; this is not end-to-end
|
|
4
|
+
* encryption. No recipient login, DOM widget, polling or message cache lives here.
|
|
5
|
+
*/
|
|
6
|
+
import { HttpClient } from '../../http';
|
|
7
|
+
import type { CreateMessagingConversationOptions, InitiateMessagingAttachmentOptions, ListMessagingInboxOptions, MessagingAttachmentDownload, MessagingAttachmentUpload, MessagingConversation, MessagingConversationCreated, MessagingInboxPage, MessagingInviteResult, MessagingParticipant, MessagingParticipantInput, MessagingReadResult, MessagingReceiptToken, MessagingRecipientIdentity, MessagingSendResult, ReadMessagingConversationOptions, SendMessagingMessageOptions } from './types';
|
|
8
|
+
/** Stateless, authenticated business API for the pre-launch Messaging product. */
|
|
9
|
+
export declare class MessagingModule {
|
|
10
|
+
private readonly http;
|
|
11
|
+
constructor(http: HttpClient);
|
|
12
|
+
/** Follow cursor even when a page contains fewer than limit conversations. */
|
|
13
|
+
getInbox(options?: ListMessagingInboxOptions): Promise<MessagingInboxPage>;
|
|
14
|
+
/** Create with business members; invite account-less recipients separately. */
|
|
15
|
+
createConversation(options?: CreateMessagingConversationOptions): Promise<MessagingConversationCreated>;
|
|
16
|
+
getConversation(conversationId: string): Promise<MessagingConversation>;
|
|
17
|
+
/** Sends are never retried automatically: Core allocates a new id per send. */
|
|
18
|
+
send(conversationId: string, options: SendMessagingMessageOptions): Promise<MessagingSendResult>;
|
|
19
|
+
/** Fresh read each time, including recalls and newly resolved gaps at old ids. */
|
|
20
|
+
read(conversationId: string, options?: ReadMessagingConversationOptions): Promise<MessagingReadResult>;
|
|
21
|
+
markRead(conversationId: string, lastReadId: number): Promise<void>;
|
|
22
|
+
archive(conversationId: string, archived?: boolean): Promise<void>;
|
|
23
|
+
invite(conversationId: string, identity: MessagingRecipientIdentity): Promise<MessagingInviteResult>;
|
|
24
|
+
addParticipant(conversationId: string, input: MessagingParticipantInput): Promise<MessagingParticipant[]>;
|
|
25
|
+
removeParticipant(conversationId: string, svid: string): Promise<MessagingParticipant[]>;
|
|
26
|
+
recall(conversationId: string, messageId: number): Promise<void>;
|
|
27
|
+
getReceipt(conversationId: string, messageId: number): Promise<MessagingReceiptToken>;
|
|
28
|
+
/** Owner-only; a closed conversation refuses new sends. */
|
|
29
|
+
close(conversationId: string, closed?: boolean): Promise<void>;
|
|
30
|
+
/** Stores the caller's preference; Core currently does not gate sends on it. */
|
|
31
|
+
setOptOut(conversationId: string, optedOut: boolean): Promise<void>;
|
|
32
|
+
/** Owner-only; legal hold prevents recall, not account deletion. */
|
|
33
|
+
setLegalHold(conversationId: string, held: boolean): Promise<void>;
|
|
34
|
+
/** Returns transfer metadata only; no account credential is sent to Forge. */
|
|
35
|
+
initiateAttachmentUpload(conversationId: string, options: InitiateMessagingAttachmentOptions): Promise<MessagingAttachmentUpload>;
|
|
36
|
+
getAttachmentDownload(conversationId: string, ingotId: string): Promise<MessagingAttachmentDownload>;
|
|
37
|
+
}
|
|
38
|
+
export type * from './types';
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/** The authenticated business API; account-less recipient sign-in is separate. */
|
|
2
|
+
export type MessagingIdentity = string | Record<string, unknown>;
|
|
3
|
+
export interface MessagingParticipant {
|
|
4
|
+
svid: string;
|
|
5
|
+
role: 'owner' | 'member';
|
|
6
|
+
addedAt: number;
|
|
7
|
+
/** Opaque display descriptor, preserved as stored (including user_id/email). */
|
|
8
|
+
identity?: MessagingIdentity;
|
|
9
|
+
optedOut?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface MessagingParticipantInput {
|
|
12
|
+
/** Business member principal. Account-less recipients must join by invite. */
|
|
13
|
+
svid: string;
|
|
14
|
+
identity?: MessagingIdentity;
|
|
15
|
+
}
|
|
16
|
+
export interface MessagingConversationSettings {
|
|
17
|
+
/** Audit-row retention and receipt lifetime in seconds; 0 disables both. */
|
|
18
|
+
auditRetentionSeconds?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface CreateMessagingConversationOptions {
|
|
21
|
+
participants?: MessagingParticipantInput[];
|
|
22
|
+
settings?: MessagingConversationSettings;
|
|
23
|
+
}
|
|
24
|
+
export interface MessagingConversationCreated {
|
|
25
|
+
conversationId: string;
|
|
26
|
+
vaultId: string;
|
|
27
|
+
participants: MessagingParticipant[];
|
|
28
|
+
createdAt: number;
|
|
29
|
+
}
|
|
30
|
+
export interface MessagingConversation {
|
|
31
|
+
conversationId: string;
|
|
32
|
+
participants: MessagingParticipant[];
|
|
33
|
+
/** Contiguous durable boundary, not a ceiling for reads. */
|
|
34
|
+
committedThrough: number;
|
|
35
|
+
compactedThrough: number;
|
|
36
|
+
settings: MessagingConversationSettings;
|
|
37
|
+
createdAt: number;
|
|
38
|
+
}
|
|
39
|
+
/** Opaque start key: pass the object from the preceding page back unchanged. */
|
|
40
|
+
export type MessagingInboxCursor = Record<string, string | number>;
|
|
41
|
+
export interface ListMessagingInboxOptions {
|
|
42
|
+
/** Server default 25, capped at 100. */
|
|
43
|
+
limit?: number;
|
|
44
|
+
cursor?: MessagingInboxCursor;
|
|
45
|
+
}
|
|
46
|
+
export interface MessagingInboxEntry {
|
|
47
|
+
conversationId: string;
|
|
48
|
+
accountId: string;
|
|
49
|
+
lastActivityTs: number;
|
|
50
|
+
lastMessageId: number;
|
|
51
|
+
unreadCount: number;
|
|
52
|
+
lastReadId?: number;
|
|
53
|
+
archived: boolean;
|
|
54
|
+
otherParticipants?: unknown;
|
|
55
|
+
}
|
|
56
|
+
export interface MessagingInboxPage {
|
|
57
|
+
conversations: MessagingInboxEntry[];
|
|
58
|
+
/** A short/empty page may still have a continuation. */
|
|
59
|
+
cursor?: MessagingInboxCursor;
|
|
60
|
+
}
|
|
61
|
+
export interface MessagingAttachment {
|
|
62
|
+
ingotId: string;
|
|
63
|
+
/** Display filename sealed in the message, not in the transfer URL. */
|
|
64
|
+
name: string;
|
|
65
|
+
}
|
|
66
|
+
export interface MessagingContentMessage {
|
|
67
|
+
messageId: number;
|
|
68
|
+
schemaVersion: number;
|
|
69
|
+
senderSvid: string;
|
|
70
|
+
senderIdentity: MessagingIdentity;
|
|
71
|
+
/** Epoch seconds. */
|
|
72
|
+
ts: number;
|
|
73
|
+
contentType: string;
|
|
74
|
+
content: string;
|
|
75
|
+
attachments: MessagingAttachment[];
|
|
76
|
+
recalled?: false;
|
|
77
|
+
unavailable?: false;
|
|
78
|
+
}
|
|
79
|
+
export interface MessagingRecalledMessage {
|
|
80
|
+
messageId: number;
|
|
81
|
+
recalled: true;
|
|
82
|
+
unavailable?: false;
|
|
83
|
+
}
|
|
84
|
+
export interface MessagingUnavailableMessage {
|
|
85
|
+
messageId: number;
|
|
86
|
+
unavailable: true;
|
|
87
|
+
recalled?: false;
|
|
88
|
+
}
|
|
89
|
+
/** A gap may become readable on a later read; a recall never carries content. */
|
|
90
|
+
export type MessagingMessage = MessagingContentMessage | MessagingRecalledMessage | MessagingUnavailableMessage;
|
|
91
|
+
export interface ReadMessagingConversationOptions {
|
|
92
|
+
/** Inclusive range; supply both fromId and toId to page through history. */
|
|
93
|
+
fromId?: number;
|
|
94
|
+
toId?: number;
|
|
95
|
+
/** Newest-page size when no range is supplied; server default 25, cap 50. */
|
|
96
|
+
limit?: number;
|
|
97
|
+
}
|
|
98
|
+
export interface MessagingReadResult {
|
|
99
|
+
messages: MessagingMessage[];
|
|
100
|
+
committedThrough: number;
|
|
101
|
+
compactedThrough: number;
|
|
102
|
+
}
|
|
103
|
+
export interface SendMessagingMessageOptions {
|
|
104
|
+
/** Non-empty text, at most 64 KiB UTF-8 (enforced by Core). */
|
|
105
|
+
content: string;
|
|
106
|
+
contentType?: 'text/plain';
|
|
107
|
+
/** Completed, live unsent uploads belonging to this sender/conversation. */
|
|
108
|
+
attachments?: MessagingAttachment[];
|
|
109
|
+
}
|
|
110
|
+
export interface MessagingMessageReceipt {
|
|
111
|
+
accountId: string;
|
|
112
|
+
conversationId: string;
|
|
113
|
+
messageId: number;
|
|
114
|
+
senderSvid: string;
|
|
115
|
+
contentHash: string;
|
|
116
|
+
ts: number;
|
|
117
|
+
}
|
|
118
|
+
export interface MessagingSendResult {
|
|
119
|
+
messageId: number;
|
|
120
|
+
conversationId: string;
|
|
121
|
+
ts: number;
|
|
122
|
+
ingotId: string;
|
|
123
|
+
contentHash: string;
|
|
124
|
+
committedThrough: number;
|
|
125
|
+
/** Pending means an earlier allocated id has not been resolved yet. */
|
|
126
|
+
status: 'committed' | 'pending';
|
|
127
|
+
receipt: MessagingMessageReceipt;
|
|
128
|
+
}
|
|
129
|
+
export interface MessagingReceiptToken {
|
|
130
|
+
receiptToken: string;
|
|
131
|
+
expiresAt: number;
|
|
132
|
+
receipt: Omit<MessagingMessageReceipt, 'ts'> & {
|
|
133
|
+
messageTs: number;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
export interface MessagingRecipientIdentity {
|
|
137
|
+
type: 'email' | 'phone';
|
|
138
|
+
value: string;
|
|
139
|
+
}
|
|
140
|
+
export interface MessagingInviteResult {
|
|
141
|
+
svid: string;
|
|
142
|
+
accessUrl: string;
|
|
143
|
+
}
|
|
144
|
+
export interface InitiateMessagingAttachmentOptions {
|
|
145
|
+
sizeBytes: number;
|
|
146
|
+
contentType?: string;
|
|
147
|
+
}
|
|
148
|
+
export interface MessagingAttachmentUpload {
|
|
149
|
+
ingotId: string;
|
|
150
|
+
/** Client-direct upload URL; this method does not transfer bytes. */
|
|
151
|
+
forgeUrl: string;
|
|
152
|
+
expiresAt: number;
|
|
153
|
+
maxBytes: number;
|
|
154
|
+
}
|
|
155
|
+
export interface MessagingAttachmentDownload {
|
|
156
|
+
ingotId: string;
|
|
157
|
+
/** Client-direct download URL; the filename comes from the message. */
|
|
158
|
+
forgeUrl: string;
|
|
159
|
+
expiresAt: number;
|
|
160
|
+
sizeBytes: number;
|
|
161
|
+
contentType: string;
|
|
162
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IngotHistory, IngotVersion } from '../../ingots/types';
|
|
1
2
|
/** JSON values travel without implicit coercion. Binary leaves use explicit paths. */
|
|
2
3
|
export type StructuredJsonValue = null | boolean | number | string | StructuredJsonValue[] | {
|
|
3
4
|
[key: string]: StructuredJsonValue;
|
|
@@ -91,16 +92,8 @@ export interface DeleteStructuredIngotOptions {
|
|
|
91
92
|
/** Delete only this object publication. Omitted preserves unconditional deletion. */
|
|
92
93
|
expectedRevision?: string;
|
|
93
94
|
}
|
|
94
|
-
export
|
|
95
|
-
|
|
96
|
-
publishedAt: number;
|
|
97
|
-
sizeBytes: number;
|
|
98
|
-
}
|
|
99
|
-
export interface StructuredIngotHistory {
|
|
100
|
-
id: string;
|
|
101
|
-
versionLimit: number;
|
|
102
|
-
versions: StructuredIngotVersion[];
|
|
103
|
-
}
|
|
95
|
+
export type StructuredIngotVersion = IngotVersion;
|
|
96
|
+
export type StructuredIngotHistory = IngotHistory;
|
|
104
97
|
export type StructuredActivityPeriod = '24h' | '7d';
|
|
105
98
|
export interface StructuredActivityOptions {
|
|
106
99
|
period?: StructuredActivityPeriod;
|