@safetech/inheriti-client-sdk 1.17.16 → 1.17.18
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/automation.d.ts +5 -0
- package/dist/automation.js +1 -0
- package/dist/browser.d.ts +1 -0
- package/dist/browser.js +1 -1
- package/dist/inbox.d.ts +11 -0
- package/dist/inbox.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/inheriti-client-sdk.umd.js +41 -41
- package/dist/node-base.d.ts +88 -0
- package/dist/node-base.js +1 -0
- package/dist/node.d.ts +3 -84
- package/dist/node.js +1 -1
- package/dist/sdk-types.d.ts +390 -2
- package/dist/src/business/inbox/inbox-response-validator.d.ts +39 -0
- package/dist/src/business/inbox/node-inbox-file.d.ts +43 -0
- package/dist/src/business/inbox/node-inbox-normal.d.ts +50 -0
- package/dist/src/business/inbox/node-inbox-parent.d.ts +104 -0
- package/dist/src/business/inbox/node-inbox-text.d.ts +88 -0
- package/dist/src/business/inbox/types.d.ts +269 -0
- package/dist/src/business/quick-plan/build-material.d.ts +3 -3
- package/dist/src/business/quick-plan/contract.d.ts +5 -1
- package/dist/src/business/quick-plan/http-quick-plan-port.d.ts +1 -1
- package/dist/src/business/quick-plan/prepare-asset.d.ts +8 -0
- package/dist/src/business/quick-plan/quick-plan-creator.d.ts +5 -1
- package/dist/src/business/quick-plan/request-fingerprint.d.ts +2 -2
- package/dist/src/elements/automation-reveal-client.d.ts +13 -0
- package/dist/src/elements/elements-api-port.d.ts +39 -0
- package/dist/src/elements/http-automation-reveal-api-port.d.ts +30 -0
- package/dist/src/elements/http-elements-api-port.d.ts +64 -0
- package/dist/src/elements/index.d.ts +3 -0
- package/package.json +27 -2
package/dist/sdk-types.d.ts
CHANGED
|
@@ -300,6 +300,276 @@ declare class InvalidPlanMaterial extends Error {
|
|
|
300
300
|
declare function validatePlanCreationMaterial(material: EncryptedPlanMaterial): void;
|
|
301
301
|
declare function validatePlanCreationInput(input: StartPlanCreationInput): void;
|
|
302
302
|
|
|
303
|
+
interface InboxDevice {
|
|
304
|
+
id: string;
|
|
305
|
+
tenantId: string;
|
|
306
|
+
memberId: string;
|
|
307
|
+
version: number;
|
|
308
|
+
encryptionPublicKey: string;
|
|
309
|
+
encryptionKeyFingerprint: string;
|
|
310
|
+
signingPublicKey: string;
|
|
311
|
+
signingKeyFingerprint: string;
|
|
312
|
+
status: 'ACTIVE' | 'REVOKED';
|
|
313
|
+
createdAt: string;
|
|
314
|
+
updatedAt: string;
|
|
315
|
+
}
|
|
316
|
+
interface InboxConversation {
|
|
317
|
+
id: string;
|
|
318
|
+
tenantId: string;
|
|
319
|
+
creatorMemberId: string;
|
|
320
|
+
title: string | null;
|
|
321
|
+
participantMemberIds: string[];
|
|
322
|
+
participantRevision: number;
|
|
323
|
+
status: 'ACTIVE' | 'CLOSED';
|
|
324
|
+
createdAt: string;
|
|
325
|
+
updatedAt: string;
|
|
326
|
+
unreadCount?: number;
|
|
327
|
+
latestMessage?: {
|
|
328
|
+
contentKind: 'TEXT' | 'FILE' | 'NORMAL' | 'MIXED' | 'PROTECTED';
|
|
329
|
+
senderMemberId: string;
|
|
330
|
+
createdAt: string;
|
|
331
|
+
} | null;
|
|
332
|
+
}
|
|
333
|
+
interface RegisterInboxDeviceInput {
|
|
334
|
+
encryptionPublicKey: string;
|
|
335
|
+
signingPublicKey: string;
|
|
336
|
+
}
|
|
337
|
+
interface ReplaceInboxDeviceInput extends RegisterInboxDeviceInput {
|
|
338
|
+
expectedSigningFingerprint: string;
|
|
339
|
+
}
|
|
340
|
+
interface RevokeInboxDeviceInput {
|
|
341
|
+
expectedSigningFingerprint: string;
|
|
342
|
+
}
|
|
343
|
+
interface CreateInboxConversationInput {
|
|
344
|
+
title: string;
|
|
345
|
+
participantMemberIds: string[];
|
|
346
|
+
}
|
|
347
|
+
interface ChangeInboxParticipantsInput {
|
|
348
|
+
action: 'ADD' | 'REMOVE';
|
|
349
|
+
memberId: string;
|
|
350
|
+
expectedRevision: number;
|
|
351
|
+
}
|
|
352
|
+
interface ListInboxConversationsInput {
|
|
353
|
+
status?: 'ACTIVE' | 'CLOSED';
|
|
354
|
+
limit?: number;
|
|
355
|
+
offset?: number;
|
|
356
|
+
}
|
|
357
|
+
interface InboxConversationPage {
|
|
358
|
+
items: InboxConversation[];
|
|
359
|
+
total: number;
|
|
360
|
+
limit: number;
|
|
361
|
+
offset: number;
|
|
362
|
+
}
|
|
363
|
+
interface ListInboxParticipantsInput {
|
|
364
|
+
q?: string;
|
|
365
|
+
limit?: number;
|
|
366
|
+
offset?: number;
|
|
367
|
+
}
|
|
368
|
+
interface InboxParticipant {
|
|
369
|
+
memberId: string;
|
|
370
|
+
name: string;
|
|
371
|
+
deviceId: string;
|
|
372
|
+
deviceVersion: number;
|
|
373
|
+
encryptionPublicKey: string;
|
|
374
|
+
encryptionKeyFingerprint: string;
|
|
375
|
+
signingPublicKey: string;
|
|
376
|
+
signingKeyFingerprint: string;
|
|
377
|
+
}
|
|
378
|
+
interface InboxParticipantPage {
|
|
379
|
+
items: InboxParticipant[];
|
|
380
|
+
limit: number;
|
|
381
|
+
offset: number;
|
|
382
|
+
nextOffset: number | null;
|
|
383
|
+
}
|
|
384
|
+
type InboxShareLayer = {
|
|
385
|
+
id: string;
|
|
386
|
+
type: 'INHERITI_CHAIN';
|
|
387
|
+
contractAddress: string;
|
|
388
|
+
dataShareId: string;
|
|
389
|
+
keyShareId: string;
|
|
390
|
+
} | {
|
|
391
|
+
id: string;
|
|
392
|
+
type: 'INHERITI_VAULT' | 'GOOGLE_DRIVE' | 'DROPBOX' | 'ONEDRIVE';
|
|
393
|
+
dataShareId: string;
|
|
394
|
+
keyShareId: string;
|
|
395
|
+
};
|
|
396
|
+
interface InboxSendPreparation {
|
|
397
|
+
conversationId: string;
|
|
398
|
+
messageId: string;
|
|
399
|
+
participantRevision: number;
|
|
400
|
+
threshold: number;
|
|
401
|
+
total: number;
|
|
402
|
+
recipients: Omit<InboxParticipant, 'name'>[];
|
|
403
|
+
shareLayers: InboxShareLayer[];
|
|
404
|
+
}
|
|
405
|
+
interface NormalInboxSendPreparation {
|
|
406
|
+
conversationId: string;
|
|
407
|
+
parentId: string;
|
|
408
|
+
participantRevision: number;
|
|
409
|
+
recipients: Omit<InboxParticipant, 'name'>[];
|
|
410
|
+
}
|
|
411
|
+
interface PublishInboxMessageInput {
|
|
412
|
+
messageId: string;
|
|
413
|
+
senderDeviceId: string;
|
|
414
|
+
participantRevision: number;
|
|
415
|
+
expiresAt: string;
|
|
416
|
+
idempotencyKey: string;
|
|
417
|
+
canonicalManifest: string;
|
|
418
|
+
signature: string;
|
|
419
|
+
tenantWrappedShareKey: string;
|
|
420
|
+
recipients: Array<{
|
|
421
|
+
memberId: string;
|
|
422
|
+
deviceId: string;
|
|
423
|
+
deviceVersion: number;
|
|
424
|
+
keyFingerprint: string;
|
|
425
|
+
wrappedContentKey: string;
|
|
426
|
+
}>;
|
|
427
|
+
shares: Array<{
|
|
428
|
+
kind: 'DATA' | 'KEY';
|
|
429
|
+
index: number;
|
|
430
|
+
shareId: string;
|
|
431
|
+
layerId: string;
|
|
432
|
+
ciphertext: string;
|
|
433
|
+
}>;
|
|
434
|
+
}
|
|
435
|
+
type StageInboxFileInput = Omit<PublishInboxMessageInput, 'shares'> & {
|
|
436
|
+
shares: Array<{
|
|
437
|
+
kind: 'DATA' | 'KEY';
|
|
438
|
+
index: number;
|
|
439
|
+
shareId: string;
|
|
440
|
+
layerId: string;
|
|
441
|
+
}>;
|
|
442
|
+
};
|
|
443
|
+
interface PublishedInboxMessage {
|
|
444
|
+
messageId: string;
|
|
445
|
+
status: 'PREPARING' | 'AVAILABLE' | 'FAILED' | 'DELETING' | 'DELETED';
|
|
446
|
+
}
|
|
447
|
+
interface ListInboxMessagesInput {
|
|
448
|
+
status?: 'PREPARING' | 'AVAILABLE' | 'FAILED';
|
|
449
|
+
limit?: number;
|
|
450
|
+
offset?: number;
|
|
451
|
+
}
|
|
452
|
+
interface InboxMessageMetadata {
|
|
453
|
+
id: string;
|
|
454
|
+
contentKind?: 'TEXT' | 'FILE';
|
|
455
|
+
recipientStatus?: 'UNREAD' | 'LEASED' | 'CONSUMED' | 'EXPIRED' | 'REVOKED';
|
|
456
|
+
recipientStatuses?: Array<{
|
|
457
|
+
memberId: string;
|
|
458
|
+
status: NonNullable<InboxMessageMetadata['recipientStatus']>;
|
|
459
|
+
}>;
|
|
460
|
+
status: Exclude<PublishedInboxMessage['status'], 'DELETED'>;
|
|
461
|
+
senderMemberId: string;
|
|
462
|
+
senderDeviceId: string;
|
|
463
|
+
createdAt: string;
|
|
464
|
+
updatedAt: string;
|
|
465
|
+
expiresAt: string;
|
|
466
|
+
}
|
|
467
|
+
interface InboxMessagePage {
|
|
468
|
+
items: InboxMessageMetadata[];
|
|
469
|
+
total: number;
|
|
470
|
+
limit: number;
|
|
471
|
+
offset: number;
|
|
472
|
+
}
|
|
473
|
+
interface OpenedInboxMessage {
|
|
474
|
+
leaseId: string;
|
|
475
|
+
leaseExpiresAt: string;
|
|
476
|
+
senderSigningPublicKey: string;
|
|
477
|
+
senderSigningKeyFingerprint: string;
|
|
478
|
+
senderDeviceVersion: number;
|
|
479
|
+
canonicalManifest: string;
|
|
480
|
+
signature: string;
|
|
481
|
+
tenantWrappedShareKey: string;
|
|
482
|
+
wrappedContentKey: string;
|
|
483
|
+
shares: Array<{
|
|
484
|
+
kind: 'DATA' | 'KEY';
|
|
485
|
+
index: number;
|
|
486
|
+
shareId: string;
|
|
487
|
+
layerId: string;
|
|
488
|
+
ciphertext: string;
|
|
489
|
+
}>;
|
|
490
|
+
}
|
|
491
|
+
interface PublishNormalInboxMessageInput {
|
|
492
|
+
parentId: string;
|
|
493
|
+
idempotencyKey: string;
|
|
494
|
+
senderDeviceId: string;
|
|
495
|
+
participantRevision: number;
|
|
496
|
+
canonicalManifest: string;
|
|
497
|
+
frame: string;
|
|
498
|
+
signature: string;
|
|
499
|
+
recipients: PublishInboxMessageInput['recipients'];
|
|
500
|
+
}
|
|
501
|
+
interface PublishedNormalInboxMessage {
|
|
502
|
+
parentId: string;
|
|
503
|
+
sequence: number;
|
|
504
|
+
status: 'AVAILABLE';
|
|
505
|
+
}
|
|
506
|
+
interface NormalInboxMessageMetadata {
|
|
507
|
+
parentId: string;
|
|
508
|
+
sequence: number;
|
|
509
|
+
senderMemberId: string;
|
|
510
|
+
senderDeviceId: string;
|
|
511
|
+
participantRevision: number;
|
|
512
|
+
createdAt: string;
|
|
513
|
+
}
|
|
514
|
+
interface NormalInboxMessagePage {
|
|
515
|
+
items: NormalInboxMessageMetadata[];
|
|
516
|
+
total: number;
|
|
517
|
+
limit: number;
|
|
518
|
+
offset: number;
|
|
519
|
+
unreadCount: number;
|
|
520
|
+
readThroughSequence: number;
|
|
521
|
+
}
|
|
522
|
+
interface OpenedNormalInboxMessage extends Omit<NormalInboxMessageMetadata, 'createdAt'> {
|
|
523
|
+
canonicalManifest: string;
|
|
524
|
+
frame: string;
|
|
525
|
+
signature: string;
|
|
526
|
+
wrappedContentKey: string;
|
|
527
|
+
senderSigningPublicKey: string;
|
|
528
|
+
}
|
|
529
|
+
interface PublishInboxParentInput {
|
|
530
|
+
parentId: string;
|
|
531
|
+
idempotencyKey: string;
|
|
532
|
+
senderDeviceId: string;
|
|
533
|
+
participantRevision: number;
|
|
534
|
+
mode: 'MIXED' | 'PROTECTED';
|
|
535
|
+
canonicalManifest: string;
|
|
536
|
+
signature: string;
|
|
537
|
+
frame?: string;
|
|
538
|
+
recipients: Array<Omit<PublishInboxMessageInput['recipients'][number], 'wrappedContentKey'> & {
|
|
539
|
+
wrappedContentKey?: string;
|
|
540
|
+
}>;
|
|
541
|
+
protectedUnits: Array<{
|
|
542
|
+
position: number;
|
|
543
|
+
frame: string;
|
|
544
|
+
child: PublishInboxMessageInput;
|
|
545
|
+
}>;
|
|
546
|
+
}
|
|
547
|
+
interface InboxParentMetadata extends NormalInboxMessageMetadata {
|
|
548
|
+
mode: 'NORMAL' | 'MIXED' | 'PROTECTED';
|
|
549
|
+
status: 'AVAILABLE';
|
|
550
|
+
}
|
|
551
|
+
interface InboxParentPage extends Omit<NormalInboxMessagePage, 'items'> {
|
|
552
|
+
items: InboxParentMetadata[];
|
|
553
|
+
}
|
|
554
|
+
interface OpenedInboxParent extends Omit<InboxParentMetadata, 'createdAt'> {
|
|
555
|
+
canonicalManifest: string;
|
|
556
|
+
signature: string;
|
|
557
|
+
senderSigningPublicKey: string;
|
|
558
|
+
senderSigningKeyFingerprint: string;
|
|
559
|
+
senderDeviceVersion: number;
|
|
560
|
+
frame: string | null;
|
|
561
|
+
wrappedContentKey: string | null;
|
|
562
|
+
protectedUnits: Array<{
|
|
563
|
+
unitId: string;
|
|
564
|
+
position: number;
|
|
565
|
+
commitment: string;
|
|
566
|
+
status: string;
|
|
567
|
+
}>;
|
|
568
|
+
}
|
|
569
|
+
type OpenedInboxFile = Omit<OpenedInboxMessage, 'shares'> & {
|
|
570
|
+
shares: StageInboxFileInput['shares'];
|
|
571
|
+
};
|
|
572
|
+
|
|
303
573
|
interface CollectedPlanMaterial {
|
|
304
574
|
planId: string;
|
|
305
575
|
mergeThreshold: number;
|
|
@@ -359,6 +629,45 @@ interface MasterKeyRelaySessionState {
|
|
|
359
629
|
sealedMasterKey?: string;
|
|
360
630
|
}
|
|
361
631
|
interface ElementsApiPort {
|
|
632
|
+
getOwnInboxDevice(signal?: AbortSignal): Promise<InboxDevice | null>;
|
|
633
|
+
getMemberInboxDevice(memberId: string, signal?: AbortSignal): Promise<InboxDevice | null>;
|
|
634
|
+
registerInboxDevice(input: RegisterInboxDeviceInput): Promise<InboxDevice>;
|
|
635
|
+
replaceInboxDevice(input: ReplaceInboxDeviceInput): Promise<InboxDevice>;
|
|
636
|
+
revokeInboxDevice(input: RevokeInboxDeviceInput): Promise<InboxDevice>;
|
|
637
|
+
createInboxConversation(input: CreateInboxConversationInput): Promise<InboxConversation>;
|
|
638
|
+
changeInboxParticipants(conversationId: string, input: ChangeInboxParticipantsInput): Promise<InboxConversation>;
|
|
639
|
+
listInboxConversations(input?: ListInboxConversationsInput, signal?: AbortSignal): Promise<InboxConversationPage>;
|
|
640
|
+
listInboxParticipants(input?: ListInboxParticipantsInput, signal?: AbortSignal): Promise<InboxParticipantPage>;
|
|
641
|
+
getInboxSendPreparation(conversationId: string, signal?: AbortSignal): Promise<InboxSendPreparation>;
|
|
642
|
+
getNormalInboxSendPreparation(conversationId: string, signal?: AbortSignal): Promise<NormalInboxSendPreparation>;
|
|
643
|
+
publishInboxMessage(conversationId: string, input: PublishInboxMessageInput): Promise<PublishedInboxMessage>;
|
|
644
|
+
publishNormalInboxMessage(conversationId: string, input: PublishNormalInboxMessageInput): Promise<PublishedNormalInboxMessage>;
|
|
645
|
+
publishInboxParent(conversationId: string, input: PublishInboxParentInput): Promise<PublishedNormalInboxMessage>;
|
|
646
|
+
listInboxParents(conversationId: string, input?: {
|
|
647
|
+
limit?: number;
|
|
648
|
+
offset?: number;
|
|
649
|
+
}, signal?: AbortSignal): Promise<InboxParentPage>;
|
|
650
|
+
openInboxParent(conversationId: string, parentId: string, deviceId: string, signal?: AbortSignal): Promise<OpenedInboxParent>;
|
|
651
|
+
clearInboxHistory(conversationId: string, signal?: AbortSignal): Promise<{
|
|
652
|
+
clearedThroughSequence: number;
|
|
653
|
+
}>;
|
|
654
|
+
listNormalInboxMessages(conversationId: string, input?: {
|
|
655
|
+
limit?: number;
|
|
656
|
+
offset?: number;
|
|
657
|
+
}, signal?: AbortSignal): Promise<NormalInboxMessagePage>;
|
|
658
|
+
openNormalInboxMessage(conversationId: string, parentId: string, deviceId: string, signal?: AbortSignal): Promise<OpenedNormalInboxMessage>;
|
|
659
|
+
markNormalInboxMessageRead(conversationId: string, parentId: string, deviceId: string): Promise<{
|
|
660
|
+
readThroughSequence: number;
|
|
661
|
+
}>;
|
|
662
|
+
stageInboxFile(conversationId: string, input: StageInboxFileInput, signal?: AbortSignal): Promise<PublishedInboxMessage>;
|
|
663
|
+
uploadInboxFileShare(conversationId: string, messageId: string, shareId: string, bytes: Uint8Array, signal?: AbortSignal): Promise<void>;
|
|
664
|
+
publishInboxFile(conversationId: string, messageId: string, signal?: AbortSignal): Promise<PublishedInboxMessage>;
|
|
665
|
+
openInboxFile(conversationId: string, messageId: string, deviceId: string, signal?: AbortSignal): Promise<OpenedInboxFile>;
|
|
666
|
+
downloadInboxFileShare(conversationId: string, messageId: string, shareId: string, deviceId: string, leaseId: string, signal?: AbortSignal): Promise<Uint8Array>;
|
|
667
|
+
listInboxMessages(conversationId: string, input?: ListInboxMessagesInput, signal?: AbortSignal): Promise<InboxMessagePage>;
|
|
668
|
+
openInboxMessage(conversationId: string, messageId: string, deviceId: string): Promise<OpenedInboxMessage>;
|
|
669
|
+
ackInboxMessage(conversationId: string, messageId: string, deviceId: string, leaseId: string, signal?: AbortSignal): Promise<void>;
|
|
670
|
+
releaseInboxMessage(conversationId: string, messageId: string, deviceId: string, leaseId: string): Promise<void>;
|
|
362
671
|
/** How this host can obtain the key for its own Application. */
|
|
363
672
|
masterKeyAcquisition(): Promise<MasterKeyAcquisition>;
|
|
364
673
|
/** The same, for the source context of a plan bridged from another system. */
|
|
@@ -1252,6 +1561,45 @@ declare class HttpElementsApiPort implements ElementsApiPort {
|
|
|
1252
1561
|
readonly organizationId?: string;
|
|
1253
1562
|
});
|
|
1254
1563
|
private readonly business?;
|
|
1564
|
+
getOwnInboxDevice(signal?: AbortSignal): Promise<InboxDevice | null>;
|
|
1565
|
+
getMemberInboxDevice(memberId: string, signal?: AbortSignal): Promise<InboxDevice | null>;
|
|
1566
|
+
registerInboxDevice(input: RegisterInboxDeviceInput): Promise<InboxDevice>;
|
|
1567
|
+
replaceInboxDevice(input: ReplaceInboxDeviceInput): Promise<InboxDevice>;
|
|
1568
|
+
revokeInboxDevice(input: RevokeInboxDeviceInput): Promise<InboxDevice>;
|
|
1569
|
+
createInboxConversation(input: CreateInboxConversationInput): Promise<InboxConversation>;
|
|
1570
|
+
changeInboxParticipants(conversationId: string, input: ChangeInboxParticipantsInput): Promise<InboxConversation>;
|
|
1571
|
+
listInboxConversations(input?: ListInboxConversationsInput, signal?: AbortSignal): Promise<InboxConversationPage>;
|
|
1572
|
+
listInboxParticipants(input?: ListInboxParticipantsInput, signal?: AbortSignal): Promise<InboxParticipantPage>;
|
|
1573
|
+
getInboxSendPreparation(conversationId: string, signal?: AbortSignal): Promise<InboxSendPreparation>;
|
|
1574
|
+
getNormalInboxSendPreparation(conversationId: string, signal?: AbortSignal): Promise<NormalInboxSendPreparation>;
|
|
1575
|
+
publishInboxMessage(conversationId: string, input: PublishInboxMessageInput): Promise<PublishedInboxMessage>;
|
|
1576
|
+
publishNormalInboxMessage(conversationId: string, input: PublishNormalInboxMessageInput): Promise<PublishedNormalInboxMessage>;
|
|
1577
|
+
publishInboxParent(conversationId: string, input: PublishInboxParentInput): Promise<PublishedNormalInboxMessage>;
|
|
1578
|
+
listInboxParents(conversationId: string, input?: {
|
|
1579
|
+
limit?: number;
|
|
1580
|
+
offset?: number;
|
|
1581
|
+
}, signal?: AbortSignal): Promise<InboxParentPage>;
|
|
1582
|
+
openInboxParent(conversationId: string, parentId: string, deviceId: string, signal?: AbortSignal): Promise<OpenedInboxParent>;
|
|
1583
|
+
clearInboxHistory(conversationId: string, signal?: AbortSignal): Promise<{
|
|
1584
|
+
clearedThroughSequence: number;
|
|
1585
|
+
}>;
|
|
1586
|
+
listNormalInboxMessages(conversationId: string, input?: {
|
|
1587
|
+
limit?: number;
|
|
1588
|
+
offset?: number;
|
|
1589
|
+
}, signal?: AbortSignal): Promise<NormalInboxMessagePage>;
|
|
1590
|
+
openNormalInboxMessage(conversationId: string, parentId: string, deviceId: string, signal?: AbortSignal): Promise<OpenedNormalInboxMessage>;
|
|
1591
|
+
markNormalInboxMessageRead(conversationId: string, parentId: string, deviceId: string): Promise<{
|
|
1592
|
+
readThroughSequence: number;
|
|
1593
|
+
}>;
|
|
1594
|
+
stageInboxFile(conversationId: string, input: StageInboxFileInput, signal?: AbortSignal): Promise<PublishedInboxMessage>;
|
|
1595
|
+
uploadInboxFileShare(conversationId: string, messageId: string, shareId: string, bytes: Uint8Array, signal?: AbortSignal): Promise<void>;
|
|
1596
|
+
publishInboxFile(conversationId: string, messageId: string, signal?: AbortSignal): Promise<PublishedInboxMessage>;
|
|
1597
|
+
openInboxFile(conversationId: string, messageId: string, deviceId: string, signal?: AbortSignal): Promise<OpenedInboxFile>;
|
|
1598
|
+
downloadInboxFileShare(conversationId: string, messageId: string, shareId: string, deviceId: string, leaseId: string, signal?: AbortSignal): Promise<Uint8Array>;
|
|
1599
|
+
listInboxMessages(conversationId: string, input?: ListInboxMessagesInput, signal?: AbortSignal): Promise<InboxMessagePage>;
|
|
1600
|
+
openInboxMessage(conversationId: string, messageId: string, deviceId: string): Promise<OpenedInboxMessage>;
|
|
1601
|
+
ackInboxMessage(conversationId: string, messageId: string, deviceId: string, leaseId: string, signal?: AbortSignal): Promise<void>;
|
|
1602
|
+
releaseInboxMessage(conversationId: string, messageId: string, deviceId: string, leaseId: string): Promise<void>;
|
|
1255
1603
|
listBusinessOrganizations(): Promise<BusinessOrganization[]>;
|
|
1256
1604
|
listInternalBuilds(): Promise<InternalBuild[]>;
|
|
1257
1605
|
requestInternalBuildDownload(id: string): Promise<InternalBuildDownload>;
|
|
@@ -1313,10 +1661,50 @@ declare class HttpElementsApiPort implements ElementsApiPort {
|
|
|
1313
1661
|
planId: string;
|
|
1314
1662
|
}>;
|
|
1315
1663
|
private request;
|
|
1664
|
+
private requestBinary;
|
|
1316
1665
|
private requestWithoutResult;
|
|
1317
1666
|
private requireBusinessSelection;
|
|
1318
1667
|
}
|
|
1319
1668
|
|
|
1669
|
+
/** Workload-only reveal routes. This is not a full ElementsApiPort: plan creation,
|
|
1670
|
+
* operator custody claims, key acquisition and active-plan lookup have no workload routes. */
|
|
1671
|
+
declare class HttpAutomationRevealApiPort {
|
|
1672
|
+
private readonly apiUrl;
|
|
1673
|
+
private readonly getAutomationBearerToken;
|
|
1674
|
+
private readonly transport;
|
|
1675
|
+
private readonly firstRelayStates;
|
|
1676
|
+
constructor(apiUrl: string, getAutomationBearerToken: BearerTokenResolver, transport: HttpTransport);
|
|
1677
|
+
startReveal(planId: string, input: StartRevealInput): Promise<RevealSession>;
|
|
1678
|
+
getReveal(revealId: string, signal?: AbortSignal): Promise<RevealSession>;
|
|
1679
|
+
getPlan(planId: string): ReturnType<ElementsApiPort['getPlan']>;
|
|
1680
|
+
planKeyReference(planId: string): ReturnType<ElementsApiPort['planKeyReference']>;
|
|
1681
|
+
releaseRevealMaterial(revealId: string, materialVersion: string): ReturnType<ElementsApiPort['releaseRevealMaterial']>;
|
|
1682
|
+
markRevealSharesCollected(revealId: string): Promise<void>;
|
|
1683
|
+
distributeRevealCustodianShare(revealId: string): Promise<void>;
|
|
1684
|
+
requestRevealCustodianRelease(revealId: string): Promise<void>;
|
|
1685
|
+
getRevealCustodianAccess(revealId: string, signal?: AbortSignal): ReturnType<ElementsApiPort['getRevealCustodianAccess']>;
|
|
1686
|
+
getRevealCustodianShare(revealId: string, signal?: AbortSignal): ReturnType<ElementsApiPort['getRevealCustodianShare']>;
|
|
1687
|
+
reportRevealReconstruction(revealId: string, input: Parameters<ElementsApiPort['reportRevealReconstruction']>[1]): Promise<RevealSession>;
|
|
1688
|
+
closeReveal(revealId: string, reason: Parameters<ElementsApiPort['closeReveal']>[1], signal?: AbortSignal): Promise<RevealSession>;
|
|
1689
|
+
abortReveal(revealId: string): Promise<void>;
|
|
1690
|
+
authorizeRevealAction(revealId: string, input: Parameters<ElementsApiPort['authorizeRevealAction']>[1]): ReturnType<ElementsApiPort['authorizeRevealAction']>;
|
|
1691
|
+
reportRevealActionOutcome(revealId: string, actionId: string, input: Parameters<ElementsApiPort['reportRevealActionOutcome']>[2]): ReturnType<ElementsApiPort['reportRevealActionOutcome']>;
|
|
1692
|
+
startMasterKeyRelaySession(sessionId: string, planId: string, clientPublicKey: string): Promise<MasterKeyRelaySessionOpened>;
|
|
1693
|
+
readMasterKeyRelaySession(sessionId: string, signal?: AbortSignal): Promise<MasterKeyRelaySessionState>;
|
|
1694
|
+
cancelMasterKeyRelaySession(sessionId: string, signal?: AbortSignal): Promise<void>;
|
|
1695
|
+
private request;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
type AutomationRevealOptions = Omit<OpenRevealOptions, 'selectCustodianDevice' | 'proDevice'>;
|
|
1699
|
+
/** Only the scoped reveal is exposed; the underlying client cannot reach human routes. */
|
|
1700
|
+
declare function createAutomationRevealClient(options: {
|
|
1701
|
+
api: HttpAutomationRevealApiPort;
|
|
1702
|
+
reconstructor: PlanMaterialReconstructor;
|
|
1703
|
+
assetDecoder: PlanAssetContainerDecoder;
|
|
1704
|
+
}): {
|
|
1705
|
+
openReveal(planId: string, revealOptions?: AutomationRevealOptions): Promise<RevealHandle>;
|
|
1706
|
+
};
|
|
1707
|
+
|
|
1320
1708
|
/**
|
|
1321
1709
|
* Opens a plan key that was sealed under a master key.
|
|
1322
1710
|
*
|
|
@@ -1604,5 +1992,5 @@ declare class OperatorSessionController {
|
|
|
1604
1992
|
logout(): Promise<void>;
|
|
1605
1993
|
}
|
|
1606
1994
|
|
|
1607
|
-
export { BusinessOrganizationSelectionError, CANONICAL_PLAN_ASSET_TYPES, CANONICAL_STRUCTURED_ASSET_FIELDS, CorePlanMaterialBuilder, ElementsApiPortRequired, ElementsApiRequestFailed, ElementsClient, GuidedCreateRecoveryError, GuidedPlanCreator, HostProcessRuntimeEnvironment, HttpElementsApiPort, HttpOperatorAuthTransport, InheritiClientProvider, InvalidPlanDeclaration, InvalidPlanMaterial, LocalProcessReconciliationOwnership, MasterKeyRelayCancellationFailed, MasterKeyRelayExpired, MasterKeyRelayTimedOut, MasterKeyRequired, MemoryGuidedCreateCheckpointStore, MemoryKeyVault, MemoryStatePort, OAuthProtocolError, OperatorAuthClient, OperatorAuthError, OperatorReauthenticationRequired, OperatorSessionController, PLAN_CREATION_SERVER_STAGES, PlanMaterialReconstructionFailed, PlanMaterialReconstructorRequired, PollingSharedPlanEventListener, RelayMasterKeySource, RevealActionsNotOpen, RevealFieldAccessError, RevealHandleClosed, StaticMasterKeyResolver, SystemOAuthClock, WebOAuthCrypto, createElementsClient, createMasterKeyResolver, getAvailableEnvs, masterKeyRefFor, masterKeyRefKey, oauthErrorCode, parseAssetFieldSelector, revealPhaseOf, selectBusinessOrganization, unwrapDekWithMasterKey, useClient, validatePlanCreationInput, validatePlanCreationMaterial };
|
|
1608
|
-
export type { AssetFieldSelector, AuthorizationTransaction, AuthorizeRevealActionInput, BusinessOrganization, CanonicalPlanAssetType, CollectedPlanMaterial, CompatibleValue, ConsumedRevealField, CorePlanSecrets, CustodianShareResult, DeclaredMasterKeySource, DecodedPlanAsset, DeviceAuthorization, DeviceTransaction, ElementsApiPort, ElementsClientOptions, ElementsEnvironment, EncryptedPlanMaterial, EncryptedPlanShard, ExportPlanBridgeInput, GovernedRevealSession, GovernedRevealState, GovernedShare, GovernedSharesMaterial, GovernedValidatorMaterial, GuidedCreateCheckpoint, GuidedCreateCheckpointStore, GuidedCreateLocalStage, GuidedCreateOptions, InheritiClientProviderProps, IntegrationPlanAssetDeclaration, KeyVault, ListPlanLogsInput, ListPlansInput, MasterKeyAcquisition, MasterKeyAcquisitionOptions, MasterKeyRef, MasterKeyRelayContext, MasterKeyRelayPort, MasterKeyRelaySessionOpened, MasterKeyRelaySessionState, MasterKeyResolver, NativePlanParticipant, OAuthClock, OAuthCrypto, OAuthHttpTransport, OAuthTokenResponse, OAuthTransaction, OAuthTransactionStore, OidcDiscoveryDocument, OpenRevealOptions, OperatorAuthClientOptions, OperatorAuthConfiguration, OperatorAuthTransport, OperatorSession, OperatorSessionControlPort, OperatorSessionStore, OperatorSessionSummary, OperatorTokenValidator, PlanAssetContainerDecoder, PlanAssetSummary, PlanBridgeEnvelope, PlanCreationOutcome, PlanCreationProgress, PlanCreationServerStage, PlanDetail, PlanGovernanceMode, PlanGovernancePolicy, PlanLog, PlanLogPage, PlanMaterialBuilder, PlanMaterialReconstructor, PlanPage, PlanParticipantRelationship, PlanRevealProfile, PlanStatus, PlanSummary, ProCustodianShare, RelayMasterKeySourceOptions, ReportRevealActionOutcomeInput, RevealAction, RevealActionDestination, RevealActionOutcome, RevealActionType, RevealCloseReason, RevealFieldConsumption, RevealFieldDestination, RevealFieldOptions, RevealHandle, RevealMode, RevealPhase, RevealProgress, RevealReconstructionInput, RevealSession, RevealStage, StartPlanCreationInput, StartRevealInput, StatePort, StepUpReadContext, ValidatedOperatorToken };
|
|
1995
|
+
export { BusinessOrganizationSelectionError, CANONICAL_PLAN_ASSET_TYPES, CANONICAL_STRUCTURED_ASSET_FIELDS, CorePlanMaterialBuilder, ElementsApiPortRequired, ElementsApiRequestFailed, ElementsClient, GuidedCreateRecoveryError, GuidedPlanCreator, HostProcessRuntimeEnvironment, HttpAutomationRevealApiPort, HttpElementsApiPort, HttpOperatorAuthTransport, InheritiClientProvider, InvalidPlanDeclaration, InvalidPlanMaterial, LocalProcessReconciliationOwnership, MasterKeyRelayCancellationFailed, MasterKeyRelayExpired, MasterKeyRelayTimedOut, MasterKeyRequired, MemoryGuidedCreateCheckpointStore, MemoryKeyVault, MemoryStatePort, OAuthProtocolError, OperatorAuthClient, OperatorAuthError, OperatorReauthenticationRequired, OperatorSessionController, PLAN_CREATION_SERVER_STAGES, PlanMaterialReconstructionFailed, PlanMaterialReconstructorRequired, PollingSharedPlanEventListener, RelayMasterKeySource, RevealActionsNotOpen, RevealFieldAccessError, RevealHandleClosed, StaticMasterKeyResolver, SystemOAuthClock, WebOAuthCrypto, createAutomationRevealClient, createElementsClient, createMasterKeyResolver, getAvailableEnvs, masterKeyRefFor, masterKeyRefKey, oauthErrorCode, parseAssetFieldSelector, revealPhaseOf, selectBusinessOrganization, unwrapDekWithMasterKey, useClient, validatePlanCreationInput, validatePlanCreationMaterial };
|
|
1996
|
+
export type { AssetFieldSelector, AuthorizationTransaction, AuthorizeRevealActionInput, AutomationRevealOptions, BusinessOrganization, CanonicalPlanAssetType, CollectedPlanMaterial, CompatibleValue, ConsumedRevealField, CorePlanSecrets, CreateInboxConversationInput, CustodianShareResult, DeclaredMasterKeySource, DecodedPlanAsset, DeviceAuthorization, DeviceTransaction, ElementsApiPort, ElementsClientOptions, ElementsEnvironment, EncryptedPlanMaterial, EncryptedPlanShard, ExportPlanBridgeInput, GovernedRevealSession, GovernedRevealState, GovernedShare, GovernedSharesMaterial, GovernedValidatorMaterial, GuidedCreateCheckpoint, GuidedCreateCheckpointStore, GuidedCreateLocalStage, GuidedCreateOptions, InboxConversation, InboxConversationPage, InboxDevice, InboxMessageMetadata, InboxMessagePage, InboxParentMetadata, InboxParentPage, InboxParticipant, InboxParticipantPage, InboxSendPreparation, InboxShareLayer, InheritiClientProviderProps, IntegrationPlanAssetDeclaration, KeyVault, ListInboxConversationsInput, ListInboxMessagesInput, ListInboxParticipantsInput, ListPlanLogsInput, ListPlansInput, MasterKeyAcquisition, MasterKeyAcquisitionOptions, MasterKeyRef, MasterKeyRelayContext, MasterKeyRelayPort, MasterKeyRelaySessionOpened, MasterKeyRelaySessionState, MasterKeyResolver, NativePlanParticipant, NormalInboxMessageMetadata, NormalInboxMessagePage, NormalInboxSendPreparation, OAuthClock, OAuthCrypto, OAuthHttpTransport, OAuthTokenResponse, OAuthTransaction, OAuthTransactionStore, OidcDiscoveryDocument, OpenRevealOptions, OpenedInboxParent, OpenedNormalInboxMessage, OperatorAuthClientOptions, OperatorAuthConfiguration, OperatorAuthTransport, OperatorSession, OperatorSessionControlPort, OperatorSessionStore, OperatorSessionSummary, OperatorTokenValidator, PlanAssetContainerDecoder, PlanAssetSummary, PlanBridgeEnvelope, PlanCreationOutcome, PlanCreationProgress, PlanCreationServerStage, PlanDetail, PlanGovernanceMode, PlanGovernancePolicy, PlanLog, PlanLogPage, PlanMaterialBuilder, PlanMaterialReconstructor, PlanPage, PlanParticipantRelationship, PlanRevealProfile, PlanStatus, PlanSummary, ProCustodianShare, PublishInboxMessageInput, PublishInboxParentInput, PublishNormalInboxMessageInput, PublishedInboxMessage, PublishedNormalInboxMessage, RegisterInboxDeviceInput, RelayMasterKeySourceOptions, ReplaceInboxDeviceInput, ReportRevealActionOutcomeInput, RevealAction, RevealActionDestination, RevealActionOutcome, RevealActionType, RevealCloseReason, RevealFieldConsumption, RevealFieldDestination, RevealFieldOptions, RevealHandle, RevealMode, RevealPhase, RevealProgress, RevealReconstructionInput, RevealSession, RevealStage, RevokeInboxDeviceInput, StartPlanCreationInput, StartRevealInput, StatePort, StepUpReadContext, ValidatedOperatorToken };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { InboxDevice, InboxConversation, InboxConversationPage, InboxParticipantPage, InboxSendPreparation, PublishedInboxMessage, InboxMessagePage, OpenedInboxMessage, OpenedInboxFile, PublishedNormalInboxMessage, NormalInboxMessagePage, OpenedNormalInboxMessage, NormalInboxSendPreparation, InboxParentPage, OpenedInboxParent } from './types';
|
|
2
|
+
/** Validates parent history and its member read counters. */
|
|
3
|
+
export declare function decodeInboxParentPage(value: unknown): InboxParentPage;
|
|
4
|
+
/** Validates the mode-specific encrypted parent read shape. */
|
|
5
|
+
export declare function decodeOpenedInboxParent(value: unknown): OpenedInboxParent;
|
|
6
|
+
/** Accepts only a fully available normal parent after publish. */
|
|
7
|
+
export declare function decodePublishedNormalInboxMessage(value: unknown): PublishedNormalInboxMessage;
|
|
8
|
+
/** Bounds the authoritative device snapshot without requiring share layers. */
|
|
9
|
+
export declare function decodeNormalInboxSendPreparation(value: unknown): NormalInboxSendPreparation;
|
|
10
|
+
/** Validates repeatable normal history and its read cursor. */
|
|
11
|
+
export declare function decodeNormalInboxMessagePage(value: unknown): NormalInboxMessagePage;
|
|
12
|
+
/** Rejects a read cursor that moves outside valid sequence values. */
|
|
13
|
+
export declare function decodeNormalInboxReadCursor(value: unknown): {
|
|
14
|
+
readThroughSequence: number;
|
|
15
|
+
};
|
|
16
|
+
/** Validates the member's inclusive history cutoff. */
|
|
17
|
+
export declare function decodeInboxHistoryCutoff(value: unknown): {
|
|
18
|
+
clearedThroughSequence: number;
|
|
19
|
+
};
|
|
20
|
+
/** Requires the encrypted frame, sender key, and device envelope for a normal read. */
|
|
21
|
+
export declare function decodeOpenedNormalInboxMessage(value: unknown): OpenedNormalInboxMessage;
|
|
22
|
+
/** Validates and reads a device returned by the Inbox API. */
|
|
23
|
+
export declare function decodeInboxDevice(value: unknown): InboxDevice;
|
|
24
|
+
/** Validates and reads a conversation returned by the Inbox API. */
|
|
25
|
+
export declare function decodeInboxConversation(value: unknown): InboxConversation;
|
|
26
|
+
/** Validates a page of conversations. */
|
|
27
|
+
export declare function decodeInboxConversationPage(value: unknown): InboxConversationPage;
|
|
28
|
+
/** Validates a page of eligible participants. */
|
|
29
|
+
export declare function decodeInboxParticipantPage(value: unknown): InboxParticipantPage;
|
|
30
|
+
/** Validates the snapshot needed to send a message. */
|
|
31
|
+
export declare function decodeInboxSendPreparation(value: unknown): InboxSendPreparation;
|
|
32
|
+
/** Validates the result of publishing a message. */
|
|
33
|
+
export declare function decodePublishedInboxMessage(value: unknown): PublishedInboxMessage;
|
|
34
|
+
/** Validates a page of message metadata. */
|
|
35
|
+
export declare function decodeInboxMessagePage(value: unknown): InboxMessagePage;
|
|
36
|
+
/** Validates the encrypted message returned for opening. */
|
|
37
|
+
export declare function decodeOpenedInboxMessage(value: unknown): OpenedInboxMessage;
|
|
38
|
+
/** Validates a leased file without copying share ciphertext into JSON. */
|
|
39
|
+
export declare function decodeOpenedInboxFile(value: unknown): OpenedInboxFile;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { InboxCodecProgress, InboxFile } from '@safetech/inheriti-core-sdk/core/protocols/inbox';
|
|
2
|
+
import type { ElementsApiPort } from '../../elements/elements-api-port';
|
|
3
|
+
import { NodeInboxText, type InboxLocalIdentity } from './node-inbox-text';
|
|
4
|
+
export interface SendInboxFileInput {
|
|
5
|
+
conversationId: string;
|
|
6
|
+
file: InboxFile;
|
|
7
|
+
expiresAt: string;
|
|
8
|
+
identity: InboxLocalIdentity;
|
|
9
|
+
tenantKeyHex: string;
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
onProgress?: (completed: number, total: number, stage?: InboxFileProgressStage) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface OpenInboxFileInput {
|
|
14
|
+
conversationId: string;
|
|
15
|
+
messageId: string;
|
|
16
|
+
identity: InboxLocalIdentity;
|
|
17
|
+
tenantKeyHex: string;
|
|
18
|
+
signal?: AbortSignal;
|
|
19
|
+
onProgress?: (completed: number, total: number, stage?: InboxFileProgressStage) => void;
|
|
20
|
+
save: (file: InboxFile) => Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
type FileApi = Pick<ElementsApiPort, 'getInboxSendPreparation' | 'publishInboxMessage' | 'openInboxMessage' | 'ackInboxMessage' | 'releaseInboxMessage' | 'stageInboxFile' | 'uploadInboxFileShare' | 'publishInboxFile' | 'openInboxFile' | 'downloadInboxFileShare'>;
|
|
23
|
+
type InboxFileProgressStage = InboxCodecProgress['stage'] | 'UPLOADING' | 'DOWNLOADING';
|
|
24
|
+
/** Encrypts files in the Node process and transfers only encrypted shares over HTTP. */
|
|
25
|
+
export declare class NodeInboxFile extends NodeInboxText {
|
|
26
|
+
private readonly fileApi;
|
|
27
|
+
constructor(fileApi: FileApi);
|
|
28
|
+
sendFile(input: SendInboxFileInput): Promise<{
|
|
29
|
+
messageId: string;
|
|
30
|
+
status: string;
|
|
31
|
+
}>;
|
|
32
|
+
openFile(input: OpenInboxFileInput): Promise<{
|
|
33
|
+
name: string;
|
|
34
|
+
mimeType: string;
|
|
35
|
+
size: number;
|
|
36
|
+
leaseId: string;
|
|
37
|
+
leaseExpiresAt: string;
|
|
38
|
+
acknowledgement: 'ACKNOWLEDGED' | 'PENDING';
|
|
39
|
+
}>;
|
|
40
|
+
private fileManifest;
|
|
41
|
+
private recoverFileFrame;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ElementsApiPort } from '../../elements/elements-api-port';
|
|
2
|
+
import type { InboxLocalIdentity } from './node-inbox-text';
|
|
3
|
+
import type { NormalInboxMessagePage, PublishedNormalInboxMessage } from './types';
|
|
4
|
+
export interface SendNormalInboxTextInput {
|
|
5
|
+
conversationId: string;
|
|
6
|
+
parentId?: string;
|
|
7
|
+
text: string;
|
|
8
|
+
identity: InboxLocalIdentity;
|
|
9
|
+
}
|
|
10
|
+
export interface OpenNormalInboxTextInput {
|
|
11
|
+
conversationId: string;
|
|
12
|
+
parentId: string;
|
|
13
|
+
identity: InboxLocalIdentity;
|
|
14
|
+
signal?: AbortSignal;
|
|
15
|
+
}
|
|
16
|
+
export declare class NodeInboxNormal {
|
|
17
|
+
private readonly api;
|
|
18
|
+
private readonly pending;
|
|
19
|
+
/** Uses authenticated Inbox routes without the protected share worker. */
|
|
20
|
+
constructor(api: Pick<ElementsApiPort, 'getNormalInboxSendPreparation' | 'publishNormalInboxMessage' | 'listNormalInboxMessages' | 'openNormalInboxMessage' | 'markNormalInboxMessageRead'>);
|
|
21
|
+
/** Keeps an encrypted submission stable across uncertain publish retries. */
|
|
22
|
+
send(input: SendNormalInboxTextInput): Promise<PublishedNormalInboxMessage>;
|
|
23
|
+
/** Detects changed plaintext under a reused parent ID. */
|
|
24
|
+
private digestInput;
|
|
25
|
+
/** Confirms the local sender keys match the registered snapshot. */
|
|
26
|
+
private validatePreparation;
|
|
27
|
+
/** Binds recipient devices and revision before sealing the body. */
|
|
28
|
+
private createManifest;
|
|
29
|
+
/** Signs the encrypted frame and includes the sender's envelope. */
|
|
30
|
+
private createSubmission;
|
|
31
|
+
/** Rejects a recipient key that differs from the snapshot fingerprint. */
|
|
32
|
+
private wrapRecipientKey;
|
|
33
|
+
/** Bounds in-memory encrypted retry submissions. */
|
|
34
|
+
private rememberSubmission;
|
|
35
|
+
/** Reads metadata without decrypting normal message bodies. */
|
|
36
|
+
list(conversationId: string, input?: {
|
|
37
|
+
limit?: number;
|
|
38
|
+
offset?: number;
|
|
39
|
+
}, signal?: AbortSignal): Promise<NormalInboxMessagePage>;
|
|
40
|
+
/** Verifies sender and device binding before repeatable decryption. */
|
|
41
|
+
open(input: OpenNormalInboxTextInput): Promise<{
|
|
42
|
+
text: string;
|
|
43
|
+
parentId: string;
|
|
44
|
+
sequence: number;
|
|
45
|
+
}>;
|
|
46
|
+
/** Advances only the caller's normal-message read cursor. */
|
|
47
|
+
markRead(input: OpenNormalInboxTextInput): Promise<{
|
|
48
|
+
readThroughSequence: number;
|
|
49
|
+
}>;
|
|
50
|
+
}
|