wowok_agent 2.1.37 → 2.1.39
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/index.d.ts +45 -2
- package/dist/index.js +1 -1319
- package/dist/schema/call/allocation.js +1 -27
- package/dist/schema/call/arbitration.js +1 -106
- package/dist/schema/call/base.js +1 -152
- package/dist/schema/call/contact.js +1 -41
- package/dist/schema/call/demand.js +1 -51
- package/dist/schema/call/guard.d.ts +6 -6
- package/dist/schema/call/guard.js +1 -67
- package/dist/schema/call/handler.d.ts +0 -45
- package/dist/schema/call/handler.js +1 -214
- package/dist/schema/call/index.js +1 -19
- package/dist/schema/call/machine.js +1 -164
- package/dist/schema/call/order.js +1 -39
- package/dist/schema/call/payment.js +1 -20
- package/dist/schema/call/permission.js +1 -118
- package/dist/schema/call/personal.js +1 -81
- package/dist/schema/call/progress.js +1 -28
- package/dist/schema/call/proof.js +1 -27
- package/dist/schema/call/repository.js +1 -85
- package/dist/schema/call/reward.d.ts +12 -0
- package/dist/schema/call/reward.js +1 -46
- package/dist/schema/call/service.js +1 -88
- package/dist/schema/call/treasury.d.ts +84 -0
- package/dist/schema/call/treasury.js +1 -76
- package/dist/schema/common/index.js +1 -395
- package/dist/schema/index.js +1 -8
- package/dist/schema/local/index.js +1 -913
- package/dist/schema/local/wip.js +1 -230
- package/dist/schema/messenger/index.d.ts +0 -2
- package/dist/schema/messenger/index.js +1 -479
- package/dist/schema/query/index.d.ts +155 -0
- package/dist/schema/query/index.js +1 -1256
- package/dist/schema/utils/guard-parser.js +1 -410
- package/dist/schema/utils/guard-query-utils.js +1 -22
- package/dist/schema/utils/node-parser.d.ts +0 -14
- package/dist/schema/utils/node-parser.js +1 -382
- package/dist/schema/utils/permission-index-utils.js +1 -10
- package/package.json +5 -3
package/dist/schema/local/wip.js
CHANGED
|
@@ -1,230 +1 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
// ============================================================
|
|
3
|
-
// WIP (Witness Immutable Promise) - Witness Immutable Promise
|
|
4
|
-
// JSON file format for transmitting immutable promise information to AI over network
|
|
5
|
-
// ============================================================
|
|
6
|
-
// ============================================================
|
|
7
|
-
// Constraint Constants
|
|
8
|
-
// ============================================================
|
|
9
|
-
export const WipConstraints = {
|
|
10
|
-
maxImageSize: 2 * 1024 * 1024, // 2MB
|
|
11
|
-
maxTotalSize: 10 * 1024 * 1024, // 10MB
|
|
12
|
-
maxImageCount: 10,
|
|
13
|
-
maxTextLength: 10000,
|
|
14
|
-
schemaUrl: "https://schema.wip.wowok.net/v1",
|
|
15
|
-
version: "1.0.0",
|
|
16
|
-
};
|
|
17
|
-
// ============================================================
|
|
18
|
-
// Basic Type Schemas
|
|
19
|
-
// ============================================================
|
|
20
|
-
export const TextFormatSchema = z
|
|
21
|
-
.union([
|
|
22
|
-
z.literal("plain").describe("Plain text format"),
|
|
23
|
-
z.literal("markdown").describe("Markdown format"),
|
|
24
|
-
z.literal("html").describe("HTML format"),
|
|
25
|
-
])
|
|
26
|
-
.describe("Text content format");
|
|
27
|
-
export const ImageMimeTypeSchema = z
|
|
28
|
-
.union([
|
|
29
|
-
z.literal("image/png").describe("PNG image"),
|
|
30
|
-
z.literal("image/jpeg").describe("JPEG image"),
|
|
31
|
-
z.literal("image/gif").describe("GIF image"),
|
|
32
|
-
z.literal("image/webp").describe("WebP image"),
|
|
33
|
-
])
|
|
34
|
-
.describe("Image MIME type");
|
|
35
|
-
export const HashAlgorithmSchema = z
|
|
36
|
-
.literal("sha256")
|
|
37
|
-
.describe("Hash algorithm, fixed as sha256");
|
|
38
|
-
export const SignatureAlgorithmSchema = z
|
|
39
|
-
.literal("Ed25519")
|
|
40
|
-
.describe("Signature algorithm, fixed as Ed25519");
|
|
41
|
-
// ============================================================
|
|
42
|
-
// WIP Content Schemas
|
|
43
|
-
// ============================================================
|
|
44
|
-
export const WipContentSchema = z
|
|
45
|
-
.object({
|
|
46
|
-
text: z.string().max(WipConstraints.maxTextLength).describe("Text content"),
|
|
47
|
-
format: TextFormatSchema.describe("Text format"),
|
|
48
|
-
})
|
|
49
|
-
.describe("WIP content");
|
|
50
|
-
export const WipMediaSchema = z
|
|
51
|
-
.object({
|
|
52
|
-
id: z.string().describe("Unique media file identifier"),
|
|
53
|
-
type: ImageMimeTypeSchema.describe("Media file MIME type"),
|
|
54
|
-
data: z.string().describe("Base64 encoded file data"),
|
|
55
|
-
filename: z.string().optional().describe("Optional file name"),
|
|
56
|
-
})
|
|
57
|
-
.describe("WIP media file");
|
|
58
|
-
export const WipPayloadSchema = z
|
|
59
|
-
.object({
|
|
60
|
-
content: WipContentSchema.describe("Text content"),
|
|
61
|
-
media: z.array(WipMediaSchema).max(WipConstraints.maxImageCount).describe("Media file array"),
|
|
62
|
-
})
|
|
63
|
-
.describe("WIP content payload");
|
|
64
|
-
// ============================================================
|
|
65
|
-
// WIP Signature Schemas
|
|
66
|
-
// ============================================================
|
|
67
|
-
export const WipSignatureSchema = z
|
|
68
|
-
.object({
|
|
69
|
-
value: z.string().describe("Base64 encoded signature value"),
|
|
70
|
-
publicKey: z.string().describe("Verification public key (Base64 encoded 32 bytes) or DID"),
|
|
71
|
-
algorithm: SignatureAlgorithmSchema.describe("Signature algorithm"),
|
|
72
|
-
address: z.string().optional().describe("Signer address"),
|
|
73
|
-
})
|
|
74
|
-
.describe("WIP digital signature");
|
|
75
|
-
export const WipSignatureArraySchema = z
|
|
76
|
-
.union([WipSignatureSchema, z.array(WipSignatureSchema)])
|
|
77
|
-
.describe("Single signature or signature array (supports multi-signature)");
|
|
78
|
-
// ============================================================
|
|
79
|
-
// WIP Meta Schema
|
|
80
|
-
// ============================================================
|
|
81
|
-
export const WipMetaSchema = z
|
|
82
|
-
.object({
|
|
83
|
-
type: z.literal("wip").describe("File type identifier, fixed as wip"),
|
|
84
|
-
version: z.string().describe("Format version number"),
|
|
85
|
-
created: z.string().describe("Creation time (ISO 8601 format)"),
|
|
86
|
-
hash: z.string().describe("SHA-256 hash of payload, format: sha256:hexString"),
|
|
87
|
-
algorithm: HashAlgorithmSchema.describe("Hash algorithm identifier"),
|
|
88
|
-
signature: WipSignatureArraySchema.optional().describe("Optional digital signature"),
|
|
89
|
-
})
|
|
90
|
-
.describe("WIP metadata");
|
|
91
|
-
// ============================================================
|
|
92
|
-
// WIP File Schema
|
|
93
|
-
// ============================================================
|
|
94
|
-
export const WipFileSchema = z
|
|
95
|
-
.object({
|
|
96
|
-
wip: z.string().describe("Root identifier, value is schema URL"),
|
|
97
|
-
payload: WipPayloadSchema.describe("Content payload"),
|
|
98
|
-
meta: WipMetaSchema.describe("Metadata"),
|
|
99
|
-
})
|
|
100
|
-
.describe("Complete WIP file structure");
|
|
101
|
-
// ============================================================
|
|
102
|
-
// Image Source Schema
|
|
103
|
-
// ============================================================
|
|
104
|
-
export const ImageSourceSchema = z
|
|
105
|
-
.object({
|
|
106
|
-
source: z.string().describe("Image source path or URL. Supports: 1) Local file path (e.g., '/path/to/image.png', 'C:\\Users\\name\\image.jpg'), 2) Network URL (e.g., 'https://example.com/image.png', 'http://site.com/photo.jpg'), 3) Data URL (e.g., 'data:image/png;base64,iVBORw0K...')"),
|
|
107
|
-
id: z.string().optional().describe("Optional image ID for reference in the WIP content. If not provided, an ID will be auto-generated based on index (e.g., 'image_0', 'image_1')"),
|
|
108
|
-
filename: z.string().optional().describe("Optional file name. If not provided, will be extracted from URL path or local file name"),
|
|
109
|
-
})
|
|
110
|
-
.describe("Image source for WIP generation");
|
|
111
|
-
// ============================================================
|
|
112
|
-
// WipGenerationOptions Schema
|
|
113
|
-
// ============================================================
|
|
114
|
-
export const WipGenerationOptionsSchema = z
|
|
115
|
-
.object({
|
|
116
|
-
markdown_text: z.string().max(WipConstraints.maxTextLength).describe("Markdown formatted text content"),
|
|
117
|
-
images: z.array(ImageSourceSchema).max(WipConstraints.maxImageCount).optional().describe("Optional image list"),
|
|
118
|
-
account: z.string().optional().describe("Optional signing account (account name or address). If specified, uses Account module for signing"),
|
|
119
|
-
})
|
|
120
|
-
.required({ markdown_text: true })
|
|
121
|
-
.describe("WIP generation options");
|
|
122
|
-
// ============================================================
|
|
123
|
-
// WipSignatureVerification Schema
|
|
124
|
-
// ============================================================
|
|
125
|
-
export const WipSignatureVerificationSchema = z
|
|
126
|
-
.object({
|
|
127
|
-
publicKey: z.string().describe("Signature public key"),
|
|
128
|
-
address: z.string().optional().describe("Address derived from public key"),
|
|
129
|
-
valid: z.boolean().describe("Whether signature is valid"),
|
|
130
|
-
})
|
|
131
|
-
.describe("Single signature verification result");
|
|
132
|
-
// ============================================================
|
|
133
|
-
// WipVerificationResult Schema
|
|
134
|
-
// ============================================================
|
|
135
|
-
export const WipVerificationResultSchema = z
|
|
136
|
-
.object({
|
|
137
|
-
valid: z.boolean().describe("Whether verification passed"),
|
|
138
|
-
error: z.string().optional().describe("Error message (when verification fails)"),
|
|
139
|
-
hashValid: z.boolean().describe("Whether hash verification passed"),
|
|
140
|
-
signatureValid: z.boolean().optional().describe("Whether signature verification passed (when signature exists)"),
|
|
141
|
-
hasSignature: z.boolean().describe("Whether signature exists"),
|
|
142
|
-
signatures: z.array(WipSignatureVerificationSchema).optional().describe("Signature verification details list"),
|
|
143
|
-
})
|
|
144
|
-
.catchall(z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])))
|
|
145
|
-
.describe("WIP verification result");
|
|
146
|
-
// ============================================================
|
|
147
|
-
// WipToHtmlOptions Schema
|
|
148
|
-
// ============================================================
|
|
149
|
-
export const WipToHtmlOptionsSchema = z
|
|
150
|
-
.object({
|
|
151
|
-
title: z.string().optional().describe("HTML page title"),
|
|
152
|
-
theme: z.union([z.literal("light"), z.literal("dark")]).optional().describe("Theme style"),
|
|
153
|
-
outputPath: z.string().optional().describe("Output file path (if specified, saves to file). For single file: saves HTML to this path. For directory: saves all converted HTML files to this directory"),
|
|
154
|
-
})
|
|
155
|
-
.describe("WIP to HTML conversion options");
|
|
156
|
-
// ============================================================
|
|
157
|
-
// Tool Input Schemas
|
|
158
|
-
// ============================================================
|
|
159
|
-
export const GenerateWip_InputSchema = z
|
|
160
|
-
.object({
|
|
161
|
-
options: WipGenerationOptionsSchema.describe("WIP generation options"),
|
|
162
|
-
outputPath: z.string().describe("Output file path (.wip file). If file exists, it will be overwritten"),
|
|
163
|
-
})
|
|
164
|
-
.describe("Generate WIP file tool input parameters");
|
|
165
|
-
export const VerifyWip_InputSchema = z
|
|
166
|
-
.object({
|
|
167
|
-
wipFilePath: z.string().describe("WIP file path to verify. Supports: 1) Local file path (e.g., '/path/to/file.wip', 'C:\\Users\\name\\doc.wip'), 2) Network URL (e.g., 'https://example.com/doc.wip', 'http://site.com/file.wip'), 3) Data URL (e.g., 'data:application/json;base64,eyJ3aXAiOi...')"),
|
|
168
|
-
hash_equal: z.string().optional().describe("Optional expected hash value. If provided, the function will first verify if the file's hash matches this value. If not matched, returns hash mismatch error."),
|
|
169
|
-
requireSignature: z.boolean().optional().describe("Optional flag to require digital signature. If true, verification will fail if WIP file has no signature"),
|
|
170
|
-
})
|
|
171
|
-
.describe("Verify WIP file tool input parameters");
|
|
172
|
-
export const SignWip_InputSchema = z
|
|
173
|
-
.object({
|
|
174
|
-
wipFilePath: z.string().describe("WIP file path to sign. Supports: 1) Local file path (e.g., '/path/to/file.wip'), 2) Network URL (e.g., 'https://example.com/doc.wip'). The file will be loaded, validated, and signed"),
|
|
175
|
-
account: z.string().optional().describe("Signing account (account name or address). If not specified, uses default account"),
|
|
176
|
-
outputPath: z.string().optional().describe("Output file path. If not specified, adds 'signed_' prefix to original file name (e.g., 'doc.wip' becomes 'signed_doc.wip')"),
|
|
177
|
-
})
|
|
178
|
-
.describe("Sign WIP file tool input parameters");
|
|
179
|
-
export const Wip2Html_InputSchema = z
|
|
180
|
-
.object({
|
|
181
|
-
wipPath: z.string().describe("WIP file path or directory path. Supports: 1) Single WIP file (e.g., '/path/to/file.wip'), 2) Directory containing .wip files (e.g., '/path/to/wips/'), 3) Network URL (e.g., 'https://example.com/doc.wip'). When directory is provided, all .wip files in the directory will be converted to HTML"),
|
|
182
|
-
options: WipToHtmlOptionsSchema.optional().describe("Conversion options"),
|
|
183
|
-
})
|
|
184
|
-
.describe("WIP to HTML tool input parameters");
|
|
185
|
-
// ============================================================
|
|
186
|
-
// Tool Output Schemas
|
|
187
|
-
// ============================================================
|
|
188
|
-
export const GenerateWip_OutputSchema = z
|
|
189
|
-
.object({
|
|
190
|
-
filePath: z.string().describe("Generated WIP file path"),
|
|
191
|
-
})
|
|
192
|
-
.describe("Generate WIP file tool output result");
|
|
193
|
-
export const VerifyWip_OutputSchema = WipVerificationResultSchema.describe("Verify WIP file tool output result");
|
|
194
|
-
export const SignWip_OutputSchema = z
|
|
195
|
-
.object({
|
|
196
|
-
filePath: z.string().describe("Signed WIP file path"),
|
|
197
|
-
})
|
|
198
|
-
.describe("Sign WIP file tool output result");
|
|
199
|
-
export const Wip2Html_OutputSchema = z
|
|
200
|
-
.object({
|
|
201
|
-
html: z.string().optional().describe("HTML string content (when converting single file without outputPath)"),
|
|
202
|
-
filePath: z.string().optional().describe("Output file path (when outputPath is specified)"),
|
|
203
|
-
files: z.array(z.string()).optional().describe("Converted file path array (when processing directory)"),
|
|
204
|
-
})
|
|
205
|
-
.describe("WIP to HTML tool output result");
|
|
206
|
-
export const WipOperationOutputSchema = z.discriminatedUnion("type", [
|
|
207
|
-
z.object({
|
|
208
|
-
type: z.literal("generate"),
|
|
209
|
-
filePath: z.string(),
|
|
210
|
-
}),
|
|
211
|
-
z.object({
|
|
212
|
-
type: z.literal("verify"),
|
|
213
|
-
valid: z.boolean(),
|
|
214
|
-
error: z.string().optional(),
|
|
215
|
-
hashValid: z.boolean(),
|
|
216
|
-
signatureValid: z.boolean().optional(),
|
|
217
|
-
hasSignature: z.boolean(),
|
|
218
|
-
signatures: z.array(z.any()).optional(),
|
|
219
|
-
}),
|
|
220
|
-
z.object({
|
|
221
|
-
type: z.literal("sign"),
|
|
222
|
-
filePath: z.string(),
|
|
223
|
-
}),
|
|
224
|
-
z.object({
|
|
225
|
-
type: z.literal("wip2html"),
|
|
226
|
-
html: z.string().optional(),
|
|
227
|
-
filePath: z.string().optional(),
|
|
228
|
-
files: z.array(z.string()).optional(),
|
|
229
|
-
}),
|
|
230
|
-
]).describe("WIP operation output schema with discriminator");
|
|
1
|
+
import{z}from'zod';export const WipConstraints={'maxImageSize':0x2*0x400*0x400,'maxTotalSize':0xa*0x400*0x400,'maxImageCount':0xa,'maxTextLength':0x2710,'schemaUrl':'https://schema.wip.wowok.net/v1','version':'1.0.0'};export const TextFormatSchema=z['union']([z['literal']('plain')['describe']('Plain\x20text\x20format'),z['literal']('markdown')['describe']('Markdown\x20format'),z['literal']('html')['describe']('HTML\x20format')])['describe']('Text\x20content\x20format');export const ImageMimeTypeSchema=z['union']([z['literal']('image/png')['describe']('PNG\x20image'),z['literal']('image/jpeg')['describe']('JPEG\x20image'),z['literal']('image/gif')['describe']('GIF\x20image'),z['literal']('image/webp')['describe']('WebP\x20image')])['describe']('Image\x20MIME\x20type');export const HashAlgorithmSchema=z['literal']('sha256')['describe']('Hash\x20algorithm,\x20fixed\x20as\x20sha256');export const SignatureAlgorithmSchema=z['literal']('Ed25519')['describe']('Signature\x20algorithm,\x20fixed\x20as\x20Ed25519');export const WipContentSchema=z['object']({'text':z['string']()['max'](WipConstraints['maxTextLength'])['describe']('Text\x20content'),'format':TextFormatSchema['describe']('Text\x20format')})['describe']('WIP\x20content');export const WipMediaSchema=z['object']({'id':z['string']()['describe']('Unique\x20media\x20file\x20identifier'),'type':ImageMimeTypeSchema['describe']('Media\x20file\x20MIME\x20type'),'data':z['string']()['describe']('Base64\x20encoded\x20file\x20data'),'filename':z['string']()['optional']()['describe']('Optional\x20file\x20name')})['describe']('WIP\x20media\x20file');export const WipPayloadSchema=z['object']({'content':WipContentSchema['describe']('Text\x20content'),'media':z['array'](WipMediaSchema)['max'](WipConstraints['maxImageCount'])['describe']('Media\x20file\x20array')})['describe']('WIP\x20content\x20payload');export const WipSignatureSchema=z['object']({'value':z['string']()['describe']('Base64\x20encoded\x20signature\x20value'),'publicKey':z['string']()['describe']('Verification\x20public\x20key\x20(Base64\x20encoded\x2032\x20bytes)\x20or\x20DID'),'algorithm':SignatureAlgorithmSchema['describe']('Signature\x20algorithm'),'address':z['string']()['optional']()['describe']('Signer\x20address')})['describe']('WIP\x20digital\x20signature');export const WipSignatureArraySchema=z['union']([WipSignatureSchema,z['array'](WipSignatureSchema)])['describe']('Single\x20signature\x20or\x20signature\x20array\x20(supports\x20multi-signature)');export const WipMetaSchema=z['object']({'type':z['literal']('wip')['describe']('File\x20type\x20identifier,\x20fixed\x20as\x20wip'),'version':z['string']()['describe']('Format\x20version\x20number'),'created':z['string']()['describe']('Creation\x20time\x20(ISO\x208601\x20format)'),'hash':z['string']()['describe']('SHA-256\x20hash\x20of\x20payload,\x20format:\x20sha256:hexString'),'algorithm':HashAlgorithmSchema['describe']('Hash\x20algorithm\x20identifier'),'signature':WipSignatureArraySchema['optional']()['describe']('Optional\x20digital\x20signature')})['describe']('WIP\x20metadata');export const WipFileSchema=z['object']({'wip':z['string']()['describe']('Root\x20identifier,\x20value\x20is\x20schema\x20URL'),'payload':WipPayloadSchema['describe']('Content\x20payload'),'meta':WipMetaSchema['describe']('Metadata')})['describe']('Complete\x20WIP\x20file\x20structure');export const ImageSourceSchema=z['object']({'source':z['string']()['describe']('Image\x20source\x20path\x20or\x20URL.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/image.png\x27,\x20\x27C:\x5cUsers\x5cname\x5cimage.jpg\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/image.png\x27,\x20\x27http://site.com/photo.jpg\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:image/png;base64,iVBORw0K...\x27)'),'id':z['string']()['optional']()['describe']('Optional\x20image\x20ID\x20for\x20reference\x20in\x20the\x20WIP\x20content.\x20If\x20not\x20provided,\x20an\x20ID\x20will\x20be\x20auto-generated\x20based\x20on\x20index\x20(e.g.,\x20\x27image_0\x27,\x20\x27image_1\x27)'),'filename':z['string']()['optional']()['describe']('Optional\x20file\x20name.\x20If\x20not\x20provided,\x20will\x20be\x20extracted\x20from\x20URL\x20path\x20or\x20local\x20file\x20name')})['describe']('Image\x20source\x20for\x20WIP\x20generation');export const WipGenerationOptionsSchema=z['object']({'markdown_text':z['string']()['max'](WipConstraints['maxTextLength'])['describe']('Markdown\x20formatted\x20text\x20content'),'images':z['array'](ImageSourceSchema)['max'](WipConstraints['maxImageCount'])['optional']()['describe']('Optional\x20image\x20list'),'account':z['string']()['optional']()['describe']('Optional\x20signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20specified,\x20uses\x20Account\x20module\x20for\x20signing')})['required']({'markdown_text':!![]})['describe']('WIP\x20generation\x20options');export const WipSignatureVerificationSchema=z['object']({'publicKey':z['string']()['describe']('Signature\x20public\x20key'),'address':z['string']()['optional']()['describe']('Address\x20derived\x20from\x20public\x20key'),'valid':z['boolean']()['describe']('Whether\x20signature\x20is\x20valid')})['describe']('Single\x20signature\x20verification\x20result');export const WipVerificationResultSchema=z['object']({'valid':z['boolean']()['describe']('Whether\x20verification\x20passed'),'error':z['string']()['optional']()['describe']('Error\x20message\x20(when\x20verification\x20fails)'),'hashValid':z['boolean']()['describe']('Whether\x20hash\x20verification\x20passed'),'signatureValid':z['boolean']()['optional']()['describe']('Whether\x20signature\x20verification\x20passed\x20(when\x20signature\x20exists)'),'hasSignature':z['boolean']()['describe']('Whether\x20signature\x20exists'),'signatures':z['array'](WipSignatureVerificationSchema)['optional']()['describe']('Signature\x20verification\x20details\x20list')})['catchall'](z['record'](z['string'](),z['union']([z['string'](),z['number'](),z['boolean']()])))['describe']('WIP\x20verification\x20result');export const WipToHtmlOptionsSchema=z['object']({'title':z['string']()['optional']()['describe']('HTML\x20page\x20title'),'theme':z['union']([z['literal']('light'),z['literal']('dark')])['optional']()['describe']('Theme\x20style'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(if\x20specified,\x20saves\x20to\x20file).\x20For\x20single\x20file:\x20saves\x20HTML\x20to\x20this\x20path.\x20For\x20directory:\x20saves\x20all\x20converted\x20HTML\x20files\x20to\x20this\x20directory')})['describe']('WIP\x20to\x20HTML\x20conversion\x20options');export const GenerateWip_InputSchema=z['object']({'options':WipGenerationOptionsSchema['describe']('WIP\x20generation\x20options'),'outputPath':z['string']()['describe']('Output\x20file\x20path\x20(.wip\x20file).\x20If\x20file\x20exists,\x20it\x20will\x20be\x20overwritten')})['describe']('Generate\x20WIP\x20file\x20tool\x20input\x20parameters');export const VerifyWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20verify.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27,\x20\x27C:\x5cUsers\x5cname\x5cdoc.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27,\x20\x27http://site.com/file.wip\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:application/json;base64,eyJ3aXAiOi...\x27)'),'hash_equal':z['string']()['optional']()['describe']('Optional\x20expected\x20hash\x20value.\x20If\x20provided,\x20the\x20function\x20will\x20first\x20verify\x20if\x20the\x20file\x27s\x20hash\x20matches\x20this\x20value.\x20If\x20not\x20matched,\x20returns\x20hash\x20mismatch\x20error.'),'requireSignature':z['boolean']()['optional']()['describe']('Optional\x20flag\x20to\x20require\x20digital\x20signature.\x20If\x20true,\x20verification\x20will\x20fail\x20if\x20WIP\x20file\x20has\x20no\x20signature')})['describe']('Verify\x20WIP\x20file\x20tool\x20input\x20parameters');export const SignWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20sign.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20The\x20file\x20will\x20be\x20loaded,\x20validated,\x20and\x20signed'),'account':z['string']()['optional']()['describe']('Signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20adds\x20\x27signed_\x27\x20prefix\x20to\x20original\x20file\x20name\x20(e.g.,\x20\x27doc.wip\x27\x20becomes\x20\x27signed_doc.wip\x27)')})['describe']('Sign\x20WIP\x20file\x20tool\x20input\x20parameters');export const Wip2Html_InputSchema=z['object']({'wipPath':z['string']()['describe']('WIP\x20file\x20path\x20or\x20directory\x20path.\x20Supports:\x201)\x20Single\x20WIP\x20file\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Directory\x20containing\x20.wip\x20files\x20(e.g.,\x20\x27/path/to/wips/\x27),\x203)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20When\x20directory\x20is\x20provided,\x20all\x20.wip\x20files\x20in\x20the\x20directory\x20will\x20be\x20converted\x20to\x20HTML'),'options':WipToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['describe']('WIP\x20to\x20HTML\x20tool\x20input\x20parameters');export const GenerateWip_OutputSchema=z['object']({'filePath':z['string']()['describe']('Generated\x20WIP\x20file\x20path')})['describe']('Generate\x20WIP\x20file\x20tool\x20output\x20result');export const VerifyWip_OutputSchema=WipVerificationResultSchema['describe']('Verify\x20WIP\x20file\x20tool\x20output\x20result');export const SignWip_OutputSchema=z['object']({'filePath':z['string']()['describe']('Signed\x20WIP\x20file\x20path')})['describe']('Sign\x20WIP\x20file\x20tool\x20output\x20result');export const Wip2Html_OutputSchema=z['object']({'html':z['string']()['optional']()['describe']('HTML\x20string\x20content\x20(when\x20converting\x20single\x20file\x20without\x20outputPath)'),'filePath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(when\x20outputPath\x20is\x20specified)'),'files':z['array'](z['string']())['optional']()['describe']('Converted\x20file\x20path\x20array\x20(when\x20processing\x20directory)')})['describe']('WIP\x20to\x20HTML\x20tool\x20output\x20result');export const WipOperationOutputSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('generate'),'filePath':z['string']()}),z['object']({'type':z['literal']('verify'),'valid':z['boolean'](),'error':z['string']()['optional'](),'hashValid':z['boolean'](),'signatureValid':z['boolean']()['optional'](),'hasSignature':z['boolean'](),'signatures':z['array'](z['any']())['optional']()}),z['object']({'type':z['literal']('sign'),'filePath':z['string']()}),z['object']({'type':z['literal']('wip2html'),'html':z['string']()['optional'](),'filePath':z['string']()['optional'](),'files':z['array'](z['string']())['optional']()})])['describe']('WIP\x20operation\x20output\x20schema\x20with\x20discriminator');
|
|
@@ -439,7 +439,6 @@ export declare const ConversationsFilterSchema: z.ZodObject<{
|
|
|
439
439
|
skipAutoMarkViewed?: boolean | undefined;
|
|
440
440
|
}>;
|
|
441
441
|
export declare const MessageFilterSchema: z.ZodObject<{
|
|
442
|
-
/** Filter by account (specify which account to query) */
|
|
443
442
|
account: z.ZodOptional<z.ZodString>;
|
|
444
443
|
direction: z.ZodOptional<z.ZodEnum<["sent", "received"]>>;
|
|
445
444
|
status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>>;
|
|
@@ -1589,7 +1588,6 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1589
1588
|
}>, z.ZodObject<{
|
|
1590
1589
|
operation: z.ZodLiteral<"watch_messages">;
|
|
1591
1590
|
filter: z.ZodOptional<z.ZodObject<{
|
|
1592
|
-
/** Filter by account (specify which account to query) */
|
|
1593
1591
|
account: z.ZodOptional<z.ZodString>;
|
|
1594
1592
|
direction: z.ZodOptional<z.ZodEnum<["sent", "received"]>>;
|
|
1595
1593
|
status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>>;
|