@ai-matrx/desktop-protocol 0.21.48 → 0.21.50
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/CHANGELOG.md +21 -0
- package/dist/client.cjs +53 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +53 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +73 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +153 -10
- package/dist/index.d.ts +153 -10
- package/dist/index.js +73 -3
- package/dist/index.js.map +1 -1
- package/dist/{models-78R7DKfg.d.cts → models-CqgbnWpk.d.cts} +229 -9
- package/dist/{models-78R7DKfg.d.ts → models-CqgbnWpk.d.ts} +229 -9
- package/dist/react.d.cts +100 -2
- package/dist/react.d.ts +100 -2
- package/generated/desktop-protocol.schema.json +395 -2
- package/package.json +2 -2
package/dist/client.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/data/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/realtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-
|
|
5
|
-
export { i as isDesktopProtocolError } from './models-
|
|
4
|
+
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-CqgbnWpk.cjs';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-CqgbnWpk.cjs';
|
|
6
6
|
import { FrameHeader } from './frame.cjs';
|
|
7
7
|
|
|
8
8
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/data/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/realtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-
|
|
5
|
-
export { i as isDesktopProtocolError } from './models-
|
|
4
|
+
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-CqgbnWpk.js';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-CqgbnWpk.js';
|
|
6
6
|
import { FrameHeader } from './frame.js';
|
|
7
7
|
|
|
8
8
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.js
CHANGED
|
@@ -112,7 +112,7 @@ import { z as z2 } from "zod";
|
|
|
112
112
|
import { z } from "zod";
|
|
113
113
|
import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
|
|
114
114
|
var PROTOCOL_MAJOR = 1;
|
|
115
|
-
var PROTOCOL_MINOR =
|
|
115
|
+
var PROTOCOL_MINOR = 55;
|
|
116
116
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
117
117
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
118
118
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -2534,7 +2534,12 @@ var CodingProviderStatus = z28.strictObject({
|
|
|
2534
2534
|
quota: z28.array(CodingQuotaWindow).max(20),
|
|
2535
2535
|
models: z28.array(z28.strictObject({ id: z28.string().max(200), label: z28.string().max(200) })).max(200),
|
|
2536
2536
|
efforts: z28.array(z28.string().max(40)).max(20),
|
|
2537
|
-
|
|
2537
|
+
/**
|
|
2538
|
+
* Where the default model came from: the app's own settings file, the account (1.54: the signed-in
|
|
2539
|
+
* account's default, e.g. Codex's), or the driver's built-in pick. A peer older than 1.54 is sent
|
|
2540
|
+
* "driver" for "account" (its enum does not know the value).
|
|
2541
|
+
*/
|
|
2542
|
+
defaultModel: z28.strictObject({ id: z28.string().max(200), source: z28.enum(["settings", "driver", "account"]) }).nullable(),
|
|
2538
2543
|
defaultEffort: z28.string().max(40).nullable(),
|
|
2539
2544
|
binary: CodingProviderBinary.nullable(),
|
|
2540
2545
|
/**
|
|
@@ -3416,6 +3421,50 @@ var AppsWindowsUpdateAndReopenResult = z31.strictObject({
|
|
|
3416
3421
|
/** The version installed, null when the install did not happen (or dry_run). */
|
|
3417
3422
|
installed_version: z31.string().max(64).nullable()
|
|
3418
3423
|
});
|
|
3424
|
+
var AppsChatsCopyToAccountParams = z31.strictObject({
|
|
3425
|
+
app_key: AppKey,
|
|
3426
|
+
origin: ChatPlace,
|
|
3427
|
+
target: ChatPlace,
|
|
3428
|
+
chat_ids: z31.array(ChatId).min(1).max(500),
|
|
3429
|
+
mode: z31.enum(["copy", "move"]).default("copy"),
|
|
3430
|
+
restart: z31.enum(["queued", "restart_verify"]).default("queued"),
|
|
3431
|
+
/** Put each chat in the target group named as its origin group (default true). */
|
|
3432
|
+
mirror_groups: z31.boolean().default(true),
|
|
3433
|
+
/** Pin in the target the chats pinned in the origin (default true). */
|
|
3434
|
+
pins_follow: z31.boolean().default(true),
|
|
3435
|
+
/** A copy: group them in the origin under this name ("Copied to <target>"). */
|
|
3436
|
+
source_group: z31.string().trim().min(1).max(200).optional()
|
|
3437
|
+
});
|
|
3438
|
+
var CopiedChat = z31.strictObject({
|
|
3439
|
+
chat_id: ChatId,
|
|
3440
|
+
title: z31.string().max(500),
|
|
3441
|
+
outcome: z31.enum(["copied", "moved", "already", "skipped"]),
|
|
3442
|
+
/** The target group it was put in (its origin group's name), or null. */
|
|
3443
|
+
group: z31.string().max(200).nullable(),
|
|
3444
|
+
group_state: z31.enum(["now", "next_close", "failed"]).nullable(),
|
|
3445
|
+
pinned: z31.boolean(),
|
|
3446
|
+
pin_state: z31.enum(["now", "next_close", "failed"]).nullable(),
|
|
3447
|
+
/** The read-back: verified, waiting for a window to close (queued), or failed. */
|
|
3448
|
+
state: z31.enum(["verified", "queued", "failed"]),
|
|
3449
|
+
reason: z31.string().max(400).nullable()
|
|
3450
|
+
});
|
|
3451
|
+
var AppsChatsCopyToAccountResult = z31.strictObject({
|
|
3452
|
+
message: z31.string().max(400),
|
|
3453
|
+
origin: ChatPlace,
|
|
3454
|
+
target: ChatPlace,
|
|
3455
|
+
mode: z31.enum(["copy", "move"]),
|
|
3456
|
+
/** The marker the chats are filed under ("From <origin>"), for Bring back. */
|
|
3457
|
+
project: z31.strictObject({ id: ChatProjectId, name: z31.string().max(200) }),
|
|
3458
|
+
/** The target groups used, by name: made or reused, now or at the next close. */
|
|
3459
|
+
groups: z31.array(z31.strictObject({ name: z31.string().max(200), chats: z31.number().int().nonnegative(), ok: z31.boolean(), when: z31.enum(["now", "next_close"]).nullable(), reason: z31.string().max(400).nullable() })).max(500),
|
|
3460
|
+
source_group: z31.strictObject({ name: z31.string().max(200), ok: z31.boolean(), when: z31.enum(["now", "next_close"]).nullable(), reason: z31.string().max(400).nullable() }).nullable(),
|
|
3461
|
+
chats: z31.array(CopiedChat).max(500),
|
|
3462
|
+
verified: z31.number().int().nonnegative(),
|
|
3463
|
+
queued: z31.number().int().nonnegative(),
|
|
3464
|
+
failed: z31.number().int().nonnegative(),
|
|
3465
|
+
/** What the restart choice did: "restart_verify" closed and reopened `windows`; a fall back to "queued" says why. */
|
|
3466
|
+
restart: z31.strictObject({ asked: z31.enum(["queued", "restart_verify"]), done: z31.enum(["queued", "restart_verify"]), windows: z31.array(ChatPlace).max(2), reason: z31.string().max(400).nullable() })
|
|
3467
|
+
});
|
|
3419
3468
|
|
|
3420
3469
|
// src/schema/apps-instances.ts
|
|
3421
3470
|
import { z as z32 } from "zod";
|
|
@@ -4351,6 +4400,8 @@ var OPS = {
|
|
|
4351
4400
|
"apps.projects.move": { params: AppsProjectsMoveParams, result: AppsProjectsMoveResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4352
4401
|
"apps.projects.create": { params: AppsProjectsCreateParams, result: AppsProjectsCreateResult, kind: "unary", since: "1.10", errors: ["INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4353
4402
|
"apps.projects.import_pins": { params: AppsProjectsImportPinsParams, result: AppsProjectsImportPinsResult, kind: "unary", since: "1.10", errors: ["CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4403
|
+
// 1.55: copy (or move) chats to another account with their groups and pins, in one engine pass, read back.
|
|
4404
|
+
"apps.chats.copy_to_account": { params: AppsChatsCopyToAccountParams, result: AppsChatsCopyToAccountResult, kind: "unary", since: "1.55", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4354
4405
|
"apps.projects.to_window": { params: AppsProjectsToWindowParams, result: AppsProjectsToWindowResult, kind: "unary", since: "1.19", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4355
4406
|
// 1.11: Going cold, Spend, sync health, windows upkeep.
|
|
4356
4407
|
"apps.chats.cold": { params: AppsChatsColdParams, result: AppsChatsColdResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|