@novasamatech/host-chat 0.9.0 → 0.9.1
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/codec/message.d.ts
CHANGED
|
@@ -43,10 +43,10 @@ export declare const RichTextContent: import("scale-ts").Codec<{
|
|
|
43
43
|
};
|
|
44
44
|
}[] | undefined;
|
|
45
45
|
}>;
|
|
46
|
-
export declare const Platform: import("scale-ts").Codec<"Android" | "iOS">;
|
|
46
|
+
export declare const Platform: import("scale-ts").Codec<"Android" | "iOS" | "iOSVoIP">;
|
|
47
47
|
export declare const TokenContent: import("scale-ts").Codec<{
|
|
48
48
|
token: `0x${string}`;
|
|
49
|
-
platform: "Android" | "iOS";
|
|
49
|
+
platform: "Android" | "iOS" | "iOSVoIP";
|
|
50
50
|
}>;
|
|
51
51
|
export declare const SendContent: import("scale-ts").Codec<{
|
|
52
52
|
amount: number | bigint;
|
|
@@ -200,7 +200,7 @@ export declare const MessageContent: import("scale-ts").Codec<{
|
|
|
200
200
|
tag: "token";
|
|
201
201
|
value: {
|
|
202
202
|
token: `0x${string}`;
|
|
203
|
-
platform: "Android" | "iOS";
|
|
203
|
+
platform: "Android" | "iOS" | "iOSVoIP";
|
|
204
204
|
};
|
|
205
205
|
} | {
|
|
206
206
|
tag: "send";
|
|
@@ -442,7 +442,7 @@ export declare const VersionedMessageContent: import("scale-ts").Codec<{
|
|
|
442
442
|
tag: "token";
|
|
443
443
|
value: {
|
|
444
444
|
token: `0x${string}`;
|
|
445
|
-
platform: "Android" | "iOS";
|
|
445
|
+
platform: "Android" | "iOS" | "iOSVoIP";
|
|
446
446
|
};
|
|
447
447
|
} | {
|
|
448
448
|
tag: "send";
|
|
@@ -688,7 +688,7 @@ export declare const ChatMessage: import("scale-ts").Codec<{
|
|
|
688
688
|
tag: "token";
|
|
689
689
|
value: {
|
|
690
690
|
token: `0x${string}`;
|
|
691
|
-
platform: "Android" | "iOS";
|
|
691
|
+
platform: "Android" | "iOS" | "iOSVoIP";
|
|
692
692
|
};
|
|
693
693
|
} | {
|
|
694
694
|
tag: "send";
|
package/dist/codec/message.js
CHANGED
|
@@ -8,7 +8,10 @@ export const RichTextContent = Struct({
|
|
|
8
8
|
text: Option(TextContent),
|
|
9
9
|
attachments: Option(Vector(FileVariant)),
|
|
10
10
|
});
|
|
11
|
-
|
|
11
|
+
// Byte ordinals are wire format — APPEND only, never reorder. `iOSVoIP` (2) is emitted by
|
|
12
|
+
// iOS PApp for VoIP push tokens; without it any envelope carrying one fails to decode with
|
|
13
|
+
// `Unknown status index: 2`.
|
|
14
|
+
export const Platform = Status('Android', 'iOS', 'iOSVoIP');
|
|
12
15
|
export const TokenContent = Struct({
|
|
13
16
|
token: Hex(),
|
|
14
17
|
platform: Platform,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novasamatech/host-chat",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.1",
|
|
5
5
|
"description": "Host statement store chat integration",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"README.md"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@novasamatech/scale": "0.9.
|
|
44
|
-
"@novasamatech/statement-store": "0.9.
|
|
45
|
-
"@novasamatech/storage-adapter": "0.9.
|
|
43
|
+
"@novasamatech/scale": "0.9.1",
|
|
44
|
+
"@novasamatech/statement-store": "0.9.1",
|
|
45
|
+
"@novasamatech/storage-adapter": "0.9.1",
|
|
46
46
|
"nanoid": "6.0.0",
|
|
47
47
|
"neverthrow": "^8.2.0"
|
|
48
48
|
},
|