@ai-matrx/desktop-protocol 0.21.33 → 0.21.35

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/client.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { BackoffOptions } from '@ai-matrx/realtime';
2
2
  export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/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-BcHaOevq.cjs';
5
- export { i as isDesktopProtocolError } from './models-BcHaOevq.cjs';
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-Sz1BEet6.cjs';
5
+ export { i as isDesktopProtocolError } from './models-Sz1BEet6.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/realtime';
2
2
  export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/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-BcHaOevq.js';
5
- export { i as isDesktopProtocolError } from './models-BcHaOevq.js';
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-Sz1BEet6.js';
5
+ export { i as isDesktopProtocolError } from './models-Sz1BEet6.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 = 43;
115
+ var PROTOCOL_MINOR = 44;
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_-]+$/);
@@ -3608,6 +3608,70 @@ var MailSendParams = z34.strictObject({
3608
3608
  send: z34.boolean().default(true)
3609
3609
  });
3610
3610
  var MailSendResult = z34.strictObject({ sent: z34.boolean() });
3611
+ var OutlookStatusParams = z34.strictObject({});
3612
+ var OutlookAccount = z34.strictObject({ name: z34.string(), email: z34.string().nullable() });
3613
+ var OutlookStatusResult = z34.strictObject({
3614
+ /** classic_windows: scriptable. new_windows / mac: installed, not scriptable. none: not found. */
3615
+ client: z34.enum(["classic_windows", "new_windows", "mac", "none"]),
3616
+ scriptable: z34.boolean(),
3617
+ version: z34.string().nullable(),
3618
+ accounts: z34.array(OutlookAccount),
3619
+ /** Why it is not scriptable here, in a sentence the person can act on; null when it is. */
3620
+ reason: z34.string().nullable()
3621
+ });
3622
+ var Address = z34.string().min(3).max(320);
3623
+ var OutlookDraftParams = z34.strictObject({
3624
+ to: z34.array(Address).max(100).default([]),
3625
+ cc: z34.array(Address).max(100).default([]),
3626
+ bcc: z34.array(Address).max(100).default([]),
3627
+ subject: z34.string().max(998).default(""),
3628
+ body: z34.string().max(1048576).default(""),
3629
+ body_format: z34.enum(["text", "html"]).default("text"),
3630
+ /** Files on this computer to attach (absolute paths). */
3631
+ attachments: z34.array(z34.string().min(1).max(4096)).max(50).default([]),
3632
+ /** The sending account's address (one of outlook.status's accounts); absent: Outlook's default. */
3633
+ account: Address.optional(),
3634
+ /** true also opens the draft in a window for the person. */
3635
+ display: z34.boolean().default(false)
3636
+ });
3637
+ var OutlookDraftResult = z34.strictObject({
3638
+ /** The draft's id in Outlook (outlook.read takes it). */
3639
+ id: z34.string(),
3640
+ account: z34.string().nullable(),
3641
+ folder: z34.string(),
3642
+ attachments: nonNegInt,
3643
+ displayed: z34.boolean()
3644
+ });
3645
+ var OutlookListParams = z34.strictObject({
3646
+ folder: z34.enum(["inbox", "sent", "drafts"]).default("inbox"),
3647
+ /** The account's address; absent: the default account. */
3648
+ account: Address.optional(),
3649
+ unread_only: z34.boolean().default(false),
3650
+ limit: z34.int().min(1).max(200).default(25)
3651
+ });
3652
+ var OutlookMessage = z34.strictObject({
3653
+ id: z34.string(),
3654
+ subject: z34.string(),
3655
+ sender: z34.string(),
3656
+ received_at_ms: epochMs.nullable(),
3657
+ read: z34.boolean(),
3658
+ has_attachments: z34.boolean(),
3659
+ /** The first lines of the message's text. */
3660
+ preview: z34.string()
3661
+ });
3662
+ var OutlookListResult = z34.strictObject({ folder: z34.string(), messages: z34.array(OutlookMessage) });
3663
+ var OutlookReadParams = z34.strictObject({ id: z34.string().min(1).max(1024) });
3664
+ var OutlookReadResult = z34.strictObject({
3665
+ id: z34.string(),
3666
+ subject: z34.string(),
3667
+ sender: z34.string(),
3668
+ to: z34.array(z34.string()),
3669
+ cc: z34.array(z34.string()),
3670
+ received_at_ms: epochMs.nullable(),
3671
+ /** The plain text body, cut at 1 MiB. */
3672
+ body: z34.string(),
3673
+ attachments: z34.array(z34.strictObject({ name: z34.string(), size: nonNegInt }))
3674
+ });
3611
3675
  var MessagesChatsParams = z34.strictObject({ limit: z34.int().min(1).max(200).default(25) });
3612
3676
  var MessagesChat = z34.strictObject({
3613
3677
  chat_id: z34.string(),
@@ -4243,6 +4307,10 @@ var OPS = {
4243
4307
  "mail.accounts": { params: MailAccountsParams, result: MailAccountsResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
4244
4308
  "mail.list": { params: MailListParams, result: MailListResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
4245
4309
  "mail.send": { params: MailSendParams, result: MailSendResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
4310
+ "outlook.status": { params: OutlookStatusParams, result: OutlookStatusResult, kind: "unary", since: "1.44", errors: ["TIMEOUT", "INTERNAL"] },
4311
+ "outlook.draft": { params: OutlookDraftParams, result: OutlookDraftResult, kind: "unary", since: "1.44", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
4312
+ "outlook.list": { params: OutlookListParams, result: OutlookListResult, kind: "unary", since: "1.44", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
4313
+ "outlook.read": { params: OutlookReadParams, result: OutlookReadResult, kind: "unary", since: "1.44", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
4246
4314
  "messages.chats": { params: MessagesChatsParams, result: MessagesChatsResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
4247
4315
  "messages.list": { params: MessagesListParams, result: MessagesListResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
4248
4316
  "messages.send": { params: MessagesSendParams, result: MessagesSendResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },