@safetech/inheriti-client-sdk 1.17.20 → 1.17.22

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.
@@ -470,6 +470,7 @@ interface InboxMessageMetadata {
470
470
  recipientStatuses?: Array<{
471
471
  memberId: string;
472
472
  status: NonNullable<InboxMessageMetadata['recipientStatus']>;
473
+ consumedAt?: string | null;
473
474
  }>;
474
475
  status: Exclude<PublishedInboxMessage['status'], 'DELETED'>;
475
476
  senderMemberId: string;
@@ -524,6 +525,16 @@ interface NormalInboxMessageMetadata {
524
525
  senderDeviceId: string;
525
526
  participantRevision: number;
526
527
  createdAt: string;
528
+ recipientStatuses?: Array<{
529
+ memberId: string;
530
+ read?: boolean;
531
+ readAt?: string | null;
532
+ secrets?: Array<{
533
+ position: number;
534
+ status: 'UNREAD' | 'LEASED' | 'CONSUMED' | 'EXPIRED' | 'REVOKED' | 'DELETED';
535
+ revealedAt?: string | null;
536
+ }>;
537
+ }>;
527
538
  }
528
539
  interface NormalInboxMessagePage {
529
540
  items: NormalInboxMessageMetadata[];
@@ -1564,7 +1575,8 @@ declare class ElementsApiRequestFailed extends Error {
1564
1575
  readonly status: number;
1565
1576
  readonly code?: string | undefined;
1566
1577
  readonly detail?: string | undefined;
1567
- constructor(status: number, code?: string | undefined, detail?: string | undefined);
1578
+ readonly requestId?: string | undefined;
1579
+ constructor(status: number, code?: string | undefined, detail?: string | undefined, requestId?: string | undefined);
1568
1580
  get stepUpRequestId(): string | undefined;
1569
1581
  }
1570
1582
  declare class HttpElementsApiPort implements ElementsApiPort {
@@ -1842,6 +1854,7 @@ interface OperatorSession {
1842
1854
  tokenType: 'Bearer';
1843
1855
  expiresAt: number;
1844
1856
  refreshExpiresAt?: number;
1857
+ offlineAccessGranted?: boolean;
1845
1858
  principal: ValidatedOperatorToken;
1846
1859
  }
1847
1860
  interface AuthorizationTransaction {
@@ -1995,6 +2008,7 @@ declare class OperatorAuthClient {
1995
2008
  private getDiscovery;
1996
2009
  private transactionKey;
1997
2010
  private acceptTokens;
2011
+ private isOfflineSession;
1998
2012
  private assertPrincipal;
1999
2013
  private assertIdentity;
2000
2014
  }
@@ -27,6 +27,7 @@ export declare function decodeInboxConversation(value: unknown): InboxConversati
27
27
  export declare function decodeInboxConversationPage(value: unknown): InboxConversationPage;
28
28
  /** Validates a page of eligible participants. */
29
29
  export declare function decodeInboxParticipantPage(value: unknown): InboxParticipantPage;
30
+ /** Validates a directory page without accepting device or key data. */
30
31
  export declare function decodeInboxMemberPage(value: unknown): InboxMemberPage;
31
32
  /** Validates the snapshot needed to send a message. */
32
33
  export declare function decodeInboxSendPreparation(value: unknown): InboxSendPreparation;
@@ -168,6 +168,7 @@ export interface InboxMessageMetadata {
168
168
  recipientStatuses?: Array<{
169
169
  memberId: string;
170
170
  status: NonNullable<InboxMessageMetadata['recipientStatus']>;
171
+ consumedAt?: string | null;
171
172
  }>;
172
173
  status: Exclude<PublishedInboxMessage['status'], 'DELETED'>;
173
174
  senderMemberId: string;
@@ -222,6 +223,16 @@ export interface NormalInboxMessageMetadata {
222
223
  senderDeviceId: string;
223
224
  participantRevision: number;
224
225
  createdAt: string;
226
+ recipientStatuses?: Array<{
227
+ memberId: string;
228
+ read?: boolean;
229
+ readAt?: string | null;
230
+ secrets?: Array<{
231
+ position: number;
232
+ status: 'UNREAD' | 'LEASED' | 'CONSUMED' | 'EXPIRED' | 'REVOKED' | 'DELETED';
233
+ revealedAt?: string | null;
234
+ }>;
235
+ }>;
225
236
  }
226
237
  export interface NormalInboxMessagePage {
227
238
  items: NormalInboxMessageMetadata[];
@@ -43,7 +43,8 @@ export declare class ElementsApiRequestFailed extends Error {
43
43
  readonly status: number;
44
44
  readonly code?: string | undefined;
45
45
  readonly detail?: string | undefined;
46
- constructor(status: number, code?: string | undefined, detail?: string | undefined);
46
+ readonly requestId?: string | undefined;
47
+ constructor(status: number, code?: string | undefined, detail?: string | undefined, requestId?: string | undefined);
47
48
  get stepUpRequestId(): string | undefined;
48
49
  }
49
50
  export default class HttpElementsApiPort implements ElementsApiPort {
@@ -30,6 +30,7 @@ export declare class OperatorAuthClient {
30
30
  private getDiscovery;
31
31
  private transactionKey;
32
32
  private acceptTokens;
33
+ private isOfflineSession;
33
34
  private assertPrincipal;
34
35
  private assertIdentity;
35
36
  }
@@ -42,6 +42,7 @@ export interface OperatorSession {
42
42
  tokenType: 'Bearer';
43
43
  expiresAt: number;
44
44
  refreshExpiresAt?: number;
45
+ offlineAccessGranted?: boolean;
45
46
  principal: ValidatedOperatorToken;
46
47
  }
47
48
  export interface AuthorizationTransaction {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safetech/inheriti-client-sdk",
3
- "version": "1.17.20",
3
+ "version": "1.17.22",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",