@pmate/chat-sdk 0.14.0-seq.0 → 0.14.0-seq.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.
@@ -122,7 +122,7 @@ export class ProfileOutboxDispatcher {
122
122
  }
123
123
  async reading(command) {
124
124
  const response = await (this.options.fetch ?? fetch)(`${this.options.hubHttpUrl.replace(/\/$/, "")}/api/social/reading`, {
125
- method: "POST", headers: { authorization: `Bearer ${await this.options.getToken()}`, "content-type": "application/json" },
125
+ method: "POST", headers: { authorization: `Bearer ${await this.options.getToken()}`, "content-type": "application/json", "x-pmate-stream-protocol": "seq-v1" },
126
126
  body: JSON.stringify({ ...command.payload, operationId: command.commandId }),
127
127
  signal: AbortSignal.any([this.controller.signal, AbortSignal.timeout(10000)]), cache: "no-store", redirect: "error",
128
128
  });
@@ -152,7 +152,7 @@ export class ReadSyncClient {
152
152
  let receipt;
153
153
  try {
154
154
  receipt = await this.request("/api/social/reading", {
155
- method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ ...operation, appId, profileId }),
155
+ method: "POST", headers: { "content-type": "application/json", "x-pmate-stream-protocol": "seq-v1" }, body: JSON.stringify({ ...operation, appId, profileId }),
156
156
  });
157
157
  }
158
158
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pmate/chat-sdk",
3
- "version": "0.14.0-seq.0",
3
+ "version": "0.14.0-seq.1",
4
4
  "description": "Local-first chat SDK, message subscriptions, reading state, and shared chat UI primitives",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",