@ai-matrx/desktop-protocol 0.21.33 → 0.21.34
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 +6 -0
- package/dist/client.cjs +69 -1
- 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 +69 -1
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +91 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +99 -6
- package/dist/index.d.ts +99 -6
- package/dist/index.js +91 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-BcHaOevq.d.cts → models-Sz1BEet6.d.cts} +184 -1
- package/dist/{models-BcHaOevq.d.ts → models-Sz1BEet6.d.ts} +184 -1
- package/dist/react.d.cts +95 -0
- package/dist/react.d.ts +95 -0
- package/generated/desktop-protocol.schema.json +407 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.34
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/desktop-protocol/v0.21.33..npm/desktop-protocol/v0.21.34 -- apps/shared/desktop-protocol`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.21.33
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/client.cjs
CHANGED
|
@@ -144,7 +144,7 @@ var import_zod2 = require("zod");
|
|
|
144
144
|
var import_zod = require("zod");
|
|
145
145
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
146
146
|
var PROTOCOL_MAJOR = 1;
|
|
147
|
-
var PROTOCOL_MINOR =
|
|
147
|
+
var PROTOCOL_MINOR = 44;
|
|
148
148
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
149
149
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
150
150
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -3640,6 +3640,70 @@ var MailSendParams = import_zod34.z.strictObject({
|
|
|
3640
3640
|
send: import_zod34.z.boolean().default(true)
|
|
3641
3641
|
});
|
|
3642
3642
|
var MailSendResult = import_zod34.z.strictObject({ sent: import_zod34.z.boolean() });
|
|
3643
|
+
var OutlookStatusParams = import_zod34.z.strictObject({});
|
|
3644
|
+
var OutlookAccount = import_zod34.z.strictObject({ name: import_zod34.z.string(), email: import_zod34.z.string().nullable() });
|
|
3645
|
+
var OutlookStatusResult = import_zod34.z.strictObject({
|
|
3646
|
+
/** classic_windows: scriptable. new_windows / mac: installed, not scriptable. none: not found. */
|
|
3647
|
+
client: import_zod34.z.enum(["classic_windows", "new_windows", "mac", "none"]),
|
|
3648
|
+
scriptable: import_zod34.z.boolean(),
|
|
3649
|
+
version: import_zod34.z.string().nullable(),
|
|
3650
|
+
accounts: import_zod34.z.array(OutlookAccount),
|
|
3651
|
+
/** Why it is not scriptable here, in a sentence the person can act on; null when it is. */
|
|
3652
|
+
reason: import_zod34.z.string().nullable()
|
|
3653
|
+
});
|
|
3654
|
+
var Address = import_zod34.z.string().min(3).max(320);
|
|
3655
|
+
var OutlookDraftParams = import_zod34.z.strictObject({
|
|
3656
|
+
to: import_zod34.z.array(Address).max(100).default([]),
|
|
3657
|
+
cc: import_zod34.z.array(Address).max(100).default([]),
|
|
3658
|
+
bcc: import_zod34.z.array(Address).max(100).default([]),
|
|
3659
|
+
subject: import_zod34.z.string().max(998).default(""),
|
|
3660
|
+
body: import_zod34.z.string().max(1048576).default(""),
|
|
3661
|
+
body_format: import_zod34.z.enum(["text", "html"]).default("text"),
|
|
3662
|
+
/** Files on this computer to attach (absolute paths). */
|
|
3663
|
+
attachments: import_zod34.z.array(import_zod34.z.string().min(1).max(4096)).max(50).default([]),
|
|
3664
|
+
/** The sending account's address (one of outlook.status's accounts); absent: Outlook's default. */
|
|
3665
|
+
account: Address.optional(),
|
|
3666
|
+
/** true also opens the draft in a window for the person. */
|
|
3667
|
+
display: import_zod34.z.boolean().default(false)
|
|
3668
|
+
});
|
|
3669
|
+
var OutlookDraftResult = import_zod34.z.strictObject({
|
|
3670
|
+
/** The draft's id in Outlook (outlook.read takes it). */
|
|
3671
|
+
id: import_zod34.z.string(),
|
|
3672
|
+
account: import_zod34.z.string().nullable(),
|
|
3673
|
+
folder: import_zod34.z.string(),
|
|
3674
|
+
attachments: nonNegInt,
|
|
3675
|
+
displayed: import_zod34.z.boolean()
|
|
3676
|
+
});
|
|
3677
|
+
var OutlookListParams = import_zod34.z.strictObject({
|
|
3678
|
+
folder: import_zod34.z.enum(["inbox", "sent", "drafts"]).default("inbox"),
|
|
3679
|
+
/** The account's address; absent: the default account. */
|
|
3680
|
+
account: Address.optional(),
|
|
3681
|
+
unread_only: import_zod34.z.boolean().default(false),
|
|
3682
|
+
limit: import_zod34.z.int().min(1).max(200).default(25)
|
|
3683
|
+
});
|
|
3684
|
+
var OutlookMessage = import_zod34.z.strictObject({
|
|
3685
|
+
id: import_zod34.z.string(),
|
|
3686
|
+
subject: import_zod34.z.string(),
|
|
3687
|
+
sender: import_zod34.z.string(),
|
|
3688
|
+
received_at_ms: epochMs.nullable(),
|
|
3689
|
+
read: import_zod34.z.boolean(),
|
|
3690
|
+
has_attachments: import_zod34.z.boolean(),
|
|
3691
|
+
/** The first lines of the message's text. */
|
|
3692
|
+
preview: import_zod34.z.string()
|
|
3693
|
+
});
|
|
3694
|
+
var OutlookListResult = import_zod34.z.strictObject({ folder: import_zod34.z.string(), messages: import_zod34.z.array(OutlookMessage) });
|
|
3695
|
+
var OutlookReadParams = import_zod34.z.strictObject({ id: import_zod34.z.string().min(1).max(1024) });
|
|
3696
|
+
var OutlookReadResult = import_zod34.z.strictObject({
|
|
3697
|
+
id: import_zod34.z.string(),
|
|
3698
|
+
subject: import_zod34.z.string(),
|
|
3699
|
+
sender: import_zod34.z.string(),
|
|
3700
|
+
to: import_zod34.z.array(import_zod34.z.string()),
|
|
3701
|
+
cc: import_zod34.z.array(import_zod34.z.string()),
|
|
3702
|
+
received_at_ms: epochMs.nullable(),
|
|
3703
|
+
/** The plain text body, cut at 1 MiB. */
|
|
3704
|
+
body: import_zod34.z.string(),
|
|
3705
|
+
attachments: import_zod34.z.array(import_zod34.z.strictObject({ name: import_zod34.z.string(), size: nonNegInt }))
|
|
3706
|
+
});
|
|
3643
3707
|
var MessagesChatsParams = import_zod34.z.strictObject({ limit: import_zod34.z.int().min(1).max(200).default(25) });
|
|
3644
3708
|
var MessagesChat = import_zod34.z.strictObject({
|
|
3645
3709
|
chat_id: import_zod34.z.string(),
|
|
@@ -4275,6 +4339,10 @@ var OPS = {
|
|
|
4275
4339
|
"mail.accounts": { params: MailAccountsParams, result: MailAccountsResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
4276
4340
|
"mail.list": { params: MailListParams, result: MailListResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
4277
4341
|
"mail.send": { params: MailSendParams, result: MailSendResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
4342
|
+
"outlook.status": { params: OutlookStatusParams, result: OutlookStatusResult, kind: "unary", since: "1.44", errors: ["TIMEOUT", "INTERNAL"] },
|
|
4343
|
+
"outlook.draft": { params: OutlookDraftParams, result: OutlookDraftResult, kind: "unary", since: "1.44", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
4344
|
+
"outlook.list": { params: OutlookListParams, result: OutlookListResult, kind: "unary", since: "1.44", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
4345
|
+
"outlook.read": { params: OutlookReadParams, result: OutlookReadResult, kind: "unary", since: "1.44", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
4278
4346
|
"messages.chats": { params: MessagesChatsParams, result: MessagesChatsResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
4279
4347
|
"messages.list": { params: MessagesListParams, result: MessagesListResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
4280
4348
|
"messages.send": { params: MessagesSendParams, result: MessagesSendResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|