@sparkvault/sdk-mobile 4.5.5 → 4.5.6
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/notify.d.ts +15 -7
- package/dist/notify.js.map +1 -1
- package/package.json +1 -1
- package/src/notify.ts +15 -7
package/dist/notify.d.ts
CHANGED
|
@@ -4,27 +4,35 @@ export type NotificationInboxState = 'all' | 'unseen' | 'unread' | 'archived';
|
|
|
4
4
|
/** Terminal display states the recipient can apply to one of their rows. */
|
|
5
5
|
export type NotificationMarkState = 'seen' | 'read' | 'archived';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* the
|
|
9
|
-
*
|
|
7
|
+
* An inbox row in the two-part notification model. The `title` (and, for a
|
|
8
|
+
* cleartext send, the short `body`) is the NON-sensitive cleartext part, shown
|
|
9
|
+
* natively. A SECURE send's content lives behind the SparkLink (`sparklink_code`)
|
|
10
|
+
* and is never carried here — open the pointer to reveal it. Timestamps are epoch
|
|
11
|
+
* SECONDS.
|
|
10
12
|
*/
|
|
11
13
|
export interface NotificationRow {
|
|
12
14
|
notification_id: string;
|
|
13
15
|
send_id: string;
|
|
14
16
|
created_at: number;
|
|
15
17
|
title: string;
|
|
18
|
+
/**
|
|
19
|
+
* The short cleartext body of a plaintext send, shown natively. Absent on a
|
|
20
|
+
* sealed row (its content lives behind the pointer).
|
|
21
|
+
*/
|
|
22
|
+
body?: string;
|
|
16
23
|
category: string;
|
|
17
24
|
type: string;
|
|
18
25
|
seen_at: number | null;
|
|
19
26
|
read_at: number | null;
|
|
20
27
|
archived_at: number | null;
|
|
21
28
|
/**
|
|
22
|
-
* The grant to open. Present only for a SEALED send — a
|
|
23
|
-
* its content inline in the channel and mints no grant, so its row has
|
|
24
|
-
* pointer. Guard before building a URL from it.
|
|
29
|
+
* The grant to open. Present only for a SEALED (secure) send — a cleartext send
|
|
30
|
+
* delivers its content inline in the channel and mints no grant, so its row has
|
|
31
|
+
* no pointer. Guard before building a URL from it.
|
|
25
32
|
*/
|
|
26
33
|
sparklink_code?: string;
|
|
27
|
-
|
|
34
|
+
/** True only when there is a secure part to reveal (i.e. `sparklink_code` is set). */
|
|
35
|
+
locked: boolean;
|
|
28
36
|
thread_id?: string;
|
|
29
37
|
}
|
|
30
38
|
export interface ListNotificationsOptions {
|
package/dist/notify.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify.js","sourceRoot":"","sources":["../src/notify.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notify.js","sourceRoot":"","sources":["../src/notify.ts"],"names":[],"mappings":"AAoFA;;;;;GAKG;AACH,MAAM,OAAO,kBAAkB;IAG7B,YAAY,IAAsB;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,kDAAkD;IAClD,KAAK,CAAC,QAAQ,CAAC,UAAoC,EAAE;QACnD,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,IAAI,OAAO,CAAC,KAAK;YAAE,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;QACtD,IAAI,OAAO,CAAC,KAAK;YAAE,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9D,IAAI,OAAO,CAAC,MAAM;YAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QAEzD,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QAChC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAClC,KAAK,CAAC,CAAC,CAAC,qBAAqB,KAAK,EAAE,CAAC,CAAC,CAAC,mBAAmB,CAC3D,CAAC;QACF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,cAAc;QAClB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAsB,gCAAgC,CAAC,CAAC;QAC5F,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,SAAS,CACb,cAAsB,EACtB,OAAqC;QAErC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CACnC,qBAAqB,kBAAkB,CAAC,cAAc,CAAC,QAAQ,EAC/D,EAAE,UAAU,EAAE,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CACxD,CAAC;QACF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED,6EAA6E;IAC7E,KAAK,CAAC,cAAc,CAAC,SAAiB;QACpC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAyB,2BAA2B,EAAE;YACzF,UAAU,EAAE,SAAS;SACtB,CAAC,CAAC;QACH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED,kEAAkE;IAClE,KAAK,CAAC,gBAAgB,CAAC,SAAiB;QACtC,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,6BAA6B,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
|
package/package.json
CHANGED
package/src/notify.ts
CHANGED
|
@@ -7,27 +7,35 @@ export type NotificationInboxState = 'all' | 'unseen' | 'unread' | 'archived';
|
|
|
7
7
|
export type NotificationMarkState = 'seen' | 'read' | 'archived';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* the
|
|
12
|
-
*
|
|
10
|
+
* An inbox row in the two-part notification model. The `title` (and, for a
|
|
11
|
+
* cleartext send, the short `body`) is the NON-sensitive cleartext part, shown
|
|
12
|
+
* natively. A SECURE send's content lives behind the SparkLink (`sparklink_code`)
|
|
13
|
+
* and is never carried here — open the pointer to reveal it. Timestamps are epoch
|
|
14
|
+
* SECONDS.
|
|
13
15
|
*/
|
|
14
16
|
export interface NotificationRow {
|
|
15
17
|
notification_id: string;
|
|
16
18
|
send_id: string;
|
|
17
19
|
created_at: number;
|
|
18
20
|
title: string;
|
|
21
|
+
/**
|
|
22
|
+
* The short cleartext body of a plaintext send, shown natively. Absent on a
|
|
23
|
+
* sealed row (its content lives behind the pointer).
|
|
24
|
+
*/
|
|
25
|
+
body?: string;
|
|
19
26
|
category: string;
|
|
20
27
|
type: string;
|
|
21
28
|
seen_at: number | null;
|
|
22
29
|
read_at: number | null;
|
|
23
30
|
archived_at: number | null;
|
|
24
31
|
/**
|
|
25
|
-
* The grant to open. Present only for a SEALED send — a
|
|
26
|
-
* its content inline in the channel and mints no grant, so its row has
|
|
27
|
-
* pointer. Guard before building a URL from it.
|
|
32
|
+
* The grant to open. Present only for a SEALED (secure) send — a cleartext send
|
|
33
|
+
* delivers its content inline in the channel and mints no grant, so its row has
|
|
34
|
+
* no pointer. Guard before building a URL from it.
|
|
28
35
|
*/
|
|
29
36
|
sparklink_code?: string;
|
|
30
|
-
|
|
37
|
+
/** True only when there is a secure part to reveal (i.e. `sparklink_code` is set). */
|
|
38
|
+
locked: boolean;
|
|
31
39
|
thread_id?: string;
|
|
32
40
|
}
|
|
33
41
|
|