@ai-matrx/desktop-protocol 0.21.27 → 0.21.29

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/react.d.ts CHANGED
@@ -7,7 +7,7 @@ import { z } from 'zod';
7
7
  * never drift (see the `_assert*` lines there).
8
8
  */
9
9
  type ErrorCodeName = "AUTH_REQUIRED" | "AUTH_INVALID" | "AUTH_EXPIRED" | "AUTH_FORBIDDEN" | "AUTH_DEVICE_REVOKED" | "PERMISSION_DENIED_OS" | "NOT_FOUND" | "CONFLICT" | "INVALID_PARAMS" | "RESOURCE_BUSY" | "RESOURCE_GONE" | "CANCELLED" | "TIMEOUT" | "PLATFORM_UNSUPPORTED" | "RATE_LIMITED" | "INTERNAL" | "PROTOCOL_VERSION_UNSUPPORTED" | "PROTOCOL_ERROR" | "UNKNOWN_OPERATION" | "DEVICE_OFFLINE" | "PAYLOAD_TOO_LARGE";
10
- type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed" | "browser_not_connected" | "browser_ambiguous" | "browser_account_mismatch" | "browser_connection_off" | "awaiting_confirmation";
10
+ type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed" | "browser_not_connected" | "browser_ambiguous" | "browser_account_mismatch" | "browser_connection_off" | "awaiting_confirmation" | "tool_disabled_on_device";
11
11
  interface ErrorData {
12
12
  reason?: ErrorReasonName | undefined;
13
13
  cap?: string | undefined;
@@ -142,8 +142,8 @@ type StreamMeta = z.output<typeof StreamMeta>;
142
142
  declare const EndReason: z.ZodEnum<{
143
143
  error: "error";
144
144
  cancelled: "cancelled";
145
- resource_exited: "resource_exited";
146
145
  completed: "completed";
146
+ resource_exited: "resource_exited";
147
147
  detached: "detached";
148
148
  }>;
149
149
  type EndReason = z.output<typeof EndReason>;
@@ -2024,6 +2024,8 @@ declare const OPS: {
2024
2024
  take_off: z.ZodDefault<z.ZodBoolean>;
2025
2025
  group: z.ZodDefault<z.ZodBoolean>;
2026
2026
  pin: z.ZodOptional<z.ZodBoolean>;
2027
+ chat_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
2028
+ take_off_from: z.ZodOptional<z.ZodString>;
2027
2029
  dry_run: z.ZodDefault<z.ZodBoolean>;
2028
2030
  }, z.core.$strict>;
2029
2031
  readonly result: z.ZodObject<{
@@ -2167,6 +2169,11 @@ declare const OPS: {
2167
2169
  }, z.core.$strict>>;
2168
2170
  }, z.core.$strict>>;
2169
2171
  }, z.core.$strict>>;
2172
+ stale_windows: z.ZodOptional<z.ZodArray<z.ZodObject<{
2173
+ window: z.ZodString;
2174
+ since_ms: z.ZodInt;
2175
+ last_ms: z.ZodInt;
2176
+ }, z.core.$strict>>>;
2170
2177
  }, z.core.$strict>;
2171
2178
  readonly kind: "unary";
2172
2179
  readonly since: "1.29";
@@ -2583,6 +2590,7 @@ declare const OPS: {
2583
2590
  readonly "system.open_settings": {
2584
2591
  readonly params: z.ZodObject<{
2585
2592
  pane: z.ZodEnum<{
2593
+ microphone: "microphone";
2586
2594
  displays: "displays";
2587
2595
  night_shift: "night_shift";
2588
2596
  sound: "sound";
@@ -2598,6 +2606,7 @@ declare const OPS: {
2598
2606
  }, z.core.$strict>;
2599
2607
  readonly result: z.ZodObject<{
2600
2608
  pane: z.ZodEnum<{
2609
+ microphone: "microphone";
2601
2610
  displays: "displays";
2602
2611
  night_shift: "night_shift";
2603
2612
  sound: "sound";
@@ -4154,6 +4163,71 @@ declare const OPS: {
4154
4163
  readonly since: "1.28";
4155
4164
  readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
4156
4165
  };
4166
+ readonly "browser.tool_metrics": {
4167
+ readonly params: z.ZodObject<{
4168
+ client_instance: z.ZodString;
4169
+ }, z.core.$strict>;
4170
+ readonly result: z.ZodObject<{
4171
+ client_instance: z.ZodString;
4172
+ tools: z.ZodArray<z.ZodObject<{
4173
+ tool: z.ZodString;
4174
+ calls: z.ZodInt;
4175
+ errors: z.ZodInt;
4176
+ p50_ms: z.ZodNullable<z.ZodInt>;
4177
+ p95_ms: z.ZodNullable<z.ZodInt>;
4178
+ last_call_at_ms: z.ZodNullable<z.ZodInt>;
4179
+ last_error: z.ZodNullable<z.ZodString>;
4180
+ }, z.core.$strict>>;
4181
+ }, z.core.$strict>;
4182
+ readonly kind: "unary";
4183
+ readonly since: "1.37";
4184
+ readonly errors: readonly ["INVALID_PARAMS"];
4185
+ };
4186
+ readonly "browser.reset_counters": {
4187
+ readonly params: z.ZodObject<{
4188
+ client_instance: z.ZodString;
4189
+ }, z.core.$strict>;
4190
+ readonly result: z.ZodObject<{
4191
+ reset: z.ZodBoolean;
4192
+ }, z.core.$strict>;
4193
+ readonly kind: "unary";
4194
+ readonly since: "1.37";
4195
+ readonly errors: readonly ["INVALID_PARAMS"];
4196
+ };
4197
+ readonly "browser.log": {
4198
+ readonly params: z.ZodObject<{
4199
+ after_seq: z.ZodDefault<z.ZodInt>;
4200
+ limit: z.ZodDefault<z.ZodInt>;
4201
+ }, z.core.$strict>;
4202
+ readonly result: z.ZodObject<{
4203
+ messages: z.ZodArray<z.ZodObject<{
4204
+ seq: z.ZodInt;
4205
+ at_ms: z.ZodInt;
4206
+ direction: z.ZodEnum<{
4207
+ core: "core";
4208
+ to_browser: "to_browser";
4209
+ from_browser: "from_browser";
4210
+ }>;
4211
+ client_instance: z.ZodString;
4212
+ kind: z.ZodEnum<{
4213
+ progress: "progress";
4214
+ timeout: "timeout";
4215
+ closed: "closed";
4216
+ result: "result";
4217
+ register: "register";
4218
+ invoke: "invoke";
4219
+ }>;
4220
+ tool: z.ZodNullable<z.ZodString>;
4221
+ call_id: z.ZodNullable<z.ZodString>;
4222
+ ok: z.ZodNullable<z.ZodBoolean>;
4223
+ detail: z.ZodString;
4224
+ }, z.core.$strict>>;
4225
+ last_seq: z.ZodInt;
4226
+ }, z.core.$strict>;
4227
+ readonly kind: "unary";
4228
+ readonly since: "1.37";
4229
+ readonly errors: readonly ["INVALID_PARAMS"];
4230
+ };
4157
4231
  readonly "browser.call": {
4158
4232
  readonly params: z.ZodObject<{
4159
4233
  tool: z.ZodString;
@@ -4170,6 +4244,926 @@ declare const OPS: {
4170
4244
  readonly since: "1.28";
4171
4245
  readonly errors: readonly ["NOT_FOUND", "CONFLICT", "AUTH_FORBIDDEN", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RESOURCE_GONE", "PAYLOAD_TOO_LARGE", "INTERNAL"];
4172
4246
  };
4247
+ readonly "net.info": {
4248
+ readonly params: z.ZodObject<{}, z.core.$strict>;
4249
+ readonly result: z.ZodObject<{
4250
+ hostname: z.ZodString;
4251
+ interfaces: z.ZodArray<z.ZodObject<{
4252
+ name: z.ZodString;
4253
+ mac: z.ZodNullable<z.ZodString>;
4254
+ internal: z.ZodBoolean;
4255
+ addresses: z.ZodArray<z.ZodObject<{
4256
+ address: z.ZodString;
4257
+ family: z.ZodEnum<{
4258
+ ipv4: "ipv4";
4259
+ ipv6: "ipv6";
4260
+ }>;
4261
+ netmask: z.ZodNullable<z.ZodString>;
4262
+ cidr: z.ZodNullable<z.ZodString>;
4263
+ }, z.core.$strict>>;
4264
+ }, z.core.$strict>>;
4265
+ gateway: z.ZodNullable<z.ZodString>;
4266
+ dns: z.ZodArray<z.ZodString>;
4267
+ }, z.core.$strict>;
4268
+ readonly kind: "unary";
4269
+ readonly since: "1.37";
4270
+ readonly errors: readonly ["PLATFORM_UNSUPPORTED", "INTERNAL"];
4271
+ };
4272
+ readonly "net.wifi": {
4273
+ readonly params: z.ZodObject<{}, z.core.$strict>;
4274
+ readonly result: z.ZodObject<{
4275
+ available: z.ZodBoolean;
4276
+ current: z.ZodNullable<z.ZodObject<{
4277
+ ssid: z.ZodNullable<z.ZodString>;
4278
+ rssi: z.ZodNullable<z.ZodInt>;
4279
+ channel: z.ZodNullable<z.ZodString>;
4280
+ security: z.ZodNullable<z.ZodString>;
4281
+ }, z.core.$strict>>;
4282
+ networks: z.ZodArray<z.ZodObject<{
4283
+ ssid: z.ZodNullable<z.ZodString>;
4284
+ rssi: z.ZodNullable<z.ZodInt>;
4285
+ channel: z.ZodNullable<z.ZodString>;
4286
+ security: z.ZodNullable<z.ZodString>;
4287
+ }, z.core.$strict>>;
4288
+ }, z.core.$strict>;
4289
+ readonly kind: "unary";
4290
+ readonly since: "1.37";
4291
+ readonly errors: readonly ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4292
+ };
4293
+ readonly "net.bluetooth": {
4294
+ readonly params: z.ZodObject<{}, z.core.$strict>;
4295
+ readonly result: z.ZodObject<{
4296
+ powered: z.ZodNullable<z.ZodBoolean>;
4297
+ devices: z.ZodArray<z.ZodObject<{
4298
+ name: z.ZodString;
4299
+ address: z.ZodNullable<z.ZodString>;
4300
+ connected: z.ZodBoolean;
4301
+ kind: z.ZodNullable<z.ZodString>;
4302
+ battery: z.ZodNullable<z.ZodInt>;
4303
+ }, z.core.$strict>>;
4304
+ }, z.core.$strict>;
4305
+ readonly kind: "unary";
4306
+ readonly since: "1.37";
4307
+ readonly errors: readonly ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4308
+ };
4309
+ readonly "net.devices": {
4310
+ readonly params: z.ZodObject<{}, z.core.$strict>;
4311
+ readonly result: z.ZodObject<{
4312
+ devices: z.ZodArray<z.ZodObject<{
4313
+ ip: z.ZodString;
4314
+ mac: z.ZodNullable<z.ZodString>;
4315
+ interface: z.ZodNullable<z.ZodString>;
4316
+ hostname: z.ZodNullable<z.ZodString>;
4317
+ }, z.core.$strict>>;
4318
+ }, z.core.$strict>;
4319
+ readonly kind: "unary";
4320
+ readonly since: "1.37";
4321
+ readonly errors: readonly ["PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4322
+ };
4323
+ readonly "net.mdns": {
4324
+ readonly params: z.ZodObject<{
4325
+ service_type: z.ZodOptional<z.ZodString>;
4326
+ timeout_s: z.ZodDefault<z.ZodInt>;
4327
+ }, z.core.$strict>;
4328
+ readonly result: z.ZodObject<{
4329
+ services: z.ZodArray<z.ZodObject<{
4330
+ name: z.ZodString;
4331
+ type: z.ZodString;
4332
+ domain: z.ZodString;
4333
+ interface: z.ZodNullable<z.ZodString>;
4334
+ }, z.core.$strict>>;
4335
+ }, z.core.$strict>;
4336
+ readonly kind: "unary";
4337
+ readonly since: "1.37";
4338
+ readonly errors: readonly ["PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4339
+ };
4340
+ readonly "net.scan": {
4341
+ readonly params: z.ZodObject<{
4342
+ host: z.ZodString;
4343
+ ports: z.ZodArray<z.ZodInt>;
4344
+ timeout_ms: z.ZodDefault<z.ZodInt>;
4345
+ allow_public: z.ZodDefault<z.ZodBoolean>;
4346
+ }, z.core.$strict>;
4347
+ readonly result: z.ZodObject<{
4348
+ host: z.ZodString;
4349
+ address: z.ZodString;
4350
+ open: z.ZodArray<z.ZodInt>;
4351
+ closed: z.ZodInt;
4352
+ elapsed_ms: z.ZodInt;
4353
+ }, z.core.$strict>;
4354
+ readonly kind: "unary";
4355
+ readonly since: "1.37";
4356
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "AUTH_FORBIDDEN", "TIMEOUT", "INTERNAL"];
4357
+ };
4358
+ readonly "net.download": {
4359
+ readonly params: z.ZodObject<{
4360
+ url: z.ZodString;
4361
+ path: z.ZodString;
4362
+ overwrite: z.ZodDefault<z.ZodBoolean>;
4363
+ timeout_s: z.ZodDefault<z.ZodInt>;
4364
+ max_bytes: z.ZodDefault<z.ZodInt>;
4365
+ }, z.core.$strict>;
4366
+ readonly result: z.ZodObject<{
4367
+ path: z.ZodString;
4368
+ bytes: z.ZodInt;
4369
+ content_type: z.ZodNullable<z.ZodString>;
4370
+ url: z.ZodString;
4371
+ elapsed_ms: z.ZodInt;
4372
+ }, z.core.$strict>;
4373
+ readonly kind: "unary";
4374
+ readonly since: "1.37";
4375
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "CONFLICT", "PERMISSION_DENIED_OS", "PAYLOAD_TOO_LARGE", "TIMEOUT", "INTERNAL"];
4376
+ };
4377
+ readonly "automation.script": {
4378
+ readonly params: z.ZodObject<{
4379
+ language: z.ZodEnum<{
4380
+ applescript: "applescript";
4381
+ jxa: "jxa";
4382
+ powershell: "powershell";
4383
+ }>;
4384
+ script: z.ZodString;
4385
+ timeout_s: z.ZodDefault<z.ZodInt>;
4386
+ }, z.core.$strict>;
4387
+ readonly result: z.ZodObject<{
4388
+ stdout: z.ZodString;
4389
+ stderr: z.ZodString;
4390
+ exit_code: z.ZodInt;
4391
+ timed_out: z.ZodBoolean;
4392
+ truncated: z.ZodBoolean;
4393
+ elapsed_ms: z.ZodInt;
4394
+ }, z.core.$strict>;
4395
+ readonly kind: "unary";
4396
+ readonly since: "1.37";
4397
+ readonly errors: readonly ["INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4398
+ };
4399
+ readonly "mail.accounts": {
4400
+ readonly params: z.ZodObject<{}, z.core.$strict>;
4401
+ readonly result: z.ZodObject<{
4402
+ accounts: z.ZodArray<z.ZodObject<{
4403
+ name: z.ZodString;
4404
+ emails: z.ZodArray<z.ZodString>;
4405
+ enabled: z.ZodBoolean;
4406
+ }, z.core.$strict>>;
4407
+ }, z.core.$strict>;
4408
+ readonly kind: "unary";
4409
+ readonly since: "1.37";
4410
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4411
+ };
4412
+ readonly "mail.list": {
4413
+ readonly params: z.ZodObject<{
4414
+ account: z.ZodOptional<z.ZodString>;
4415
+ mailbox: z.ZodDefault<z.ZodString>;
4416
+ unread_only: z.ZodDefault<z.ZodBoolean>;
4417
+ limit: z.ZodDefault<z.ZodInt>;
4418
+ }, z.core.$strict>;
4419
+ readonly result: z.ZodObject<{
4420
+ messages: z.ZodArray<z.ZodObject<{
4421
+ id: z.ZodString;
4422
+ subject: z.ZodString;
4423
+ sender: z.ZodString;
4424
+ received_at_ms: z.ZodNullable<z.ZodInt>;
4425
+ read: z.ZodBoolean;
4426
+ account: z.ZodString;
4427
+ mailbox: z.ZodString;
4428
+ preview: z.ZodString;
4429
+ }, z.core.$strict>>;
4430
+ }, z.core.$strict>;
4431
+ readonly kind: "unary";
4432
+ readonly since: "1.37";
4433
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4434
+ };
4435
+ readonly "mail.send": {
4436
+ readonly params: z.ZodObject<{
4437
+ to: z.ZodArray<z.ZodString>;
4438
+ cc: z.ZodDefault<z.ZodArray<z.ZodString>>;
4439
+ subject: z.ZodString;
4440
+ body: z.ZodString;
4441
+ from: z.ZodOptional<z.ZodString>;
4442
+ send: z.ZodDefault<z.ZodBoolean>;
4443
+ }, z.core.$strict>;
4444
+ readonly result: z.ZodObject<{
4445
+ sent: z.ZodBoolean;
4446
+ }, z.core.$strict>;
4447
+ readonly kind: "unary";
4448
+ readonly since: "1.37";
4449
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4450
+ };
4451
+ readonly "messages.chats": {
4452
+ readonly params: z.ZodObject<{
4453
+ limit: z.ZodDefault<z.ZodInt>;
4454
+ }, z.core.$strict>;
4455
+ readonly result: z.ZodObject<{
4456
+ chats: z.ZodArray<z.ZodObject<{
4457
+ chat_id: z.ZodString;
4458
+ name: z.ZodNullable<z.ZodString>;
4459
+ participants: z.ZodArray<z.ZodString>;
4460
+ last_message_at_ms: z.ZodNullable<z.ZodInt>;
4461
+ service: z.ZodNullable<z.ZodString>;
4462
+ }, z.core.$strict>>;
4463
+ }, z.core.$strict>;
4464
+ readonly kind: "unary";
4465
+ readonly since: "1.37";
4466
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4467
+ };
4468
+ readonly "messages.list": {
4469
+ readonly params: z.ZodObject<{
4470
+ chat_id: z.ZodOptional<z.ZodString>;
4471
+ limit: z.ZodDefault<z.ZodInt>;
4472
+ }, z.core.$strict>;
4473
+ readonly result: z.ZodObject<{
4474
+ messages: z.ZodArray<z.ZodObject<{
4475
+ id: z.ZodString;
4476
+ chat_id: z.ZodNullable<z.ZodString>;
4477
+ text: z.ZodString;
4478
+ from_me: z.ZodBoolean;
4479
+ sender: z.ZodNullable<z.ZodString>;
4480
+ sent_at_ms: z.ZodNullable<z.ZodInt>;
4481
+ }, z.core.$strict>>;
4482
+ }, z.core.$strict>;
4483
+ readonly kind: "unary";
4484
+ readonly since: "1.37";
4485
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4486
+ };
4487
+ readonly "messages.send": {
4488
+ readonly params: z.ZodObject<{
4489
+ to: z.ZodString;
4490
+ text: z.ZodString;
4491
+ }, z.core.$strict>;
4492
+ readonly result: z.ZodObject<{
4493
+ sent: z.ZodBoolean;
4494
+ }, z.core.$strict>;
4495
+ readonly kind: "unary";
4496
+ readonly since: "1.37";
4497
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4498
+ };
4499
+ readonly "contacts.search": {
4500
+ readonly params: z.ZodObject<{
4501
+ query: z.ZodString;
4502
+ limit: z.ZodDefault<z.ZodInt>;
4503
+ }, z.core.$strict>;
4504
+ readonly result: z.ZodObject<{
4505
+ contacts: z.ZodArray<z.ZodObject<{
4506
+ id: z.ZodString;
4507
+ name: z.ZodString;
4508
+ organization: z.ZodNullable<z.ZodString>;
4509
+ emails: z.ZodArray<z.ZodObject<{
4510
+ label: z.ZodNullable<z.ZodString>;
4511
+ value: z.ZodString;
4512
+ }, z.core.$strict>>;
4513
+ phones: z.ZodArray<z.ZodObject<{
4514
+ label: z.ZodNullable<z.ZodString>;
4515
+ value: z.ZodString;
4516
+ }, z.core.$strict>>;
4517
+ }, z.core.$strict>>;
4518
+ }, z.core.$strict>;
4519
+ readonly kind: "unary";
4520
+ readonly since: "1.37";
4521
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4522
+ };
4523
+ readonly "contacts.get": {
4524
+ readonly params: z.ZodObject<{
4525
+ id: z.ZodString;
4526
+ }, z.core.$strict>;
4527
+ readonly result: z.ZodObject<{
4528
+ contact: z.ZodObject<{
4529
+ id: z.ZodString;
4530
+ name: z.ZodString;
4531
+ organization: z.ZodNullable<z.ZodString>;
4532
+ job_title: z.ZodNullable<z.ZodString>;
4533
+ emails: z.ZodArray<z.ZodObject<{
4534
+ label: z.ZodNullable<z.ZodString>;
4535
+ value: z.ZodString;
4536
+ }, z.core.$strict>>;
4537
+ phones: z.ZodArray<z.ZodObject<{
4538
+ label: z.ZodNullable<z.ZodString>;
4539
+ value: z.ZodString;
4540
+ }, z.core.$strict>>;
4541
+ addresses: z.ZodArray<z.ZodObject<{
4542
+ label: z.ZodNullable<z.ZodString>;
4543
+ value: z.ZodString;
4544
+ }, z.core.$strict>>;
4545
+ birthday: z.ZodNullable<z.ZodString>;
4546
+ note: z.ZodNullable<z.ZodString>;
4547
+ }, z.core.$strict>;
4548
+ }, z.core.$strict>;
4549
+ readonly kind: "unary";
4550
+ readonly since: "1.37";
4551
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4552
+ };
4553
+ readonly "calendar.list": {
4554
+ readonly params: z.ZodObject<{
4555
+ from_ms: z.ZodInt;
4556
+ to_ms: z.ZodInt;
4557
+ calendar: z.ZodOptional<z.ZodString>;
4558
+ limit: z.ZodDefault<z.ZodInt>;
4559
+ }, z.core.$strict>;
4560
+ readonly result: z.ZodObject<{
4561
+ events: z.ZodArray<z.ZodObject<{
4562
+ id: z.ZodString;
4563
+ title: z.ZodString;
4564
+ start_ms: z.ZodInt;
4565
+ end_ms: z.ZodInt;
4566
+ all_day: z.ZodBoolean;
4567
+ calendar: z.ZodString;
4568
+ location: z.ZodNullable<z.ZodString>;
4569
+ notes: z.ZodNullable<z.ZodString>;
4570
+ }, z.core.$strict>>;
4571
+ }, z.core.$strict>;
4572
+ readonly kind: "unary";
4573
+ readonly since: "1.37";
4574
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4575
+ };
4576
+ readonly "calendar.create": {
4577
+ readonly params: z.ZodObject<{
4578
+ title: z.ZodString;
4579
+ start_ms: z.ZodInt;
4580
+ end_ms: z.ZodInt;
4581
+ all_day: z.ZodDefault<z.ZodBoolean>;
4582
+ calendar: z.ZodOptional<z.ZodString>;
4583
+ location: z.ZodOptional<z.ZodString>;
4584
+ notes: z.ZodOptional<z.ZodString>;
4585
+ }, z.core.$strict>;
4586
+ readonly result: z.ZodObject<{
4587
+ id: z.ZodString;
4588
+ calendar: z.ZodString;
4589
+ }, z.core.$strict>;
4590
+ readonly kind: "unary";
4591
+ readonly since: "1.37";
4592
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4593
+ };
4594
+ readonly "reminders.list": {
4595
+ readonly params: z.ZodObject<{
4596
+ list: z.ZodOptional<z.ZodString>;
4597
+ include_completed: z.ZodDefault<z.ZodBoolean>;
4598
+ limit: z.ZodDefault<z.ZodInt>;
4599
+ }, z.core.$strict>;
4600
+ readonly result: z.ZodObject<{
4601
+ reminders: z.ZodArray<z.ZodObject<{
4602
+ id: z.ZodString;
4603
+ title: z.ZodString;
4604
+ list: z.ZodString;
4605
+ due_ms: z.ZodNullable<z.ZodInt>;
4606
+ completed: z.ZodBoolean;
4607
+ notes: z.ZodNullable<z.ZodString>;
4608
+ }, z.core.$strict>>;
4609
+ }, z.core.$strict>;
4610
+ readonly kind: "unary";
4611
+ readonly since: "1.37";
4612
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4613
+ };
4614
+ readonly "reminders.create": {
4615
+ readonly params: z.ZodObject<{
4616
+ title: z.ZodString;
4617
+ due_ms: z.ZodOptional<z.ZodInt>;
4618
+ list: z.ZodOptional<z.ZodString>;
4619
+ notes: z.ZodOptional<z.ZodString>;
4620
+ }, z.core.$strict>;
4621
+ readonly result: z.ZodObject<{
4622
+ id: z.ZodString;
4623
+ list: z.ZodString;
4624
+ }, z.core.$strict>;
4625
+ readonly kind: "unary";
4626
+ readonly since: "1.37";
4627
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4628
+ };
4629
+ readonly "photos.search": {
4630
+ readonly params: z.ZodObject<{
4631
+ query: z.ZodOptional<z.ZodString>;
4632
+ from_ms: z.ZodOptional<z.ZodInt>;
4633
+ to_ms: z.ZodOptional<z.ZodInt>;
4634
+ favorites_only: z.ZodDefault<z.ZodBoolean>;
4635
+ limit: z.ZodDefault<z.ZodInt>;
4636
+ }, z.core.$strict>;
4637
+ readonly result: z.ZodObject<{
4638
+ photos: z.ZodArray<z.ZodObject<{
4639
+ id: z.ZodString;
4640
+ filename: z.ZodString;
4641
+ taken_at_ms: z.ZodNullable<z.ZodInt>;
4642
+ width: z.ZodNullable<z.ZodInt>;
4643
+ height: z.ZodNullable<z.ZodInt>;
4644
+ favorite: z.ZodBoolean;
4645
+ title: z.ZodNullable<z.ZodString>;
4646
+ }, z.core.$strict>>;
4647
+ }, z.core.$strict>;
4648
+ readonly kind: "unary";
4649
+ readonly since: "1.37";
4650
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4651
+ };
4652
+ readonly "photos.get": {
4653
+ readonly params: z.ZodObject<{
4654
+ id: z.ZodString;
4655
+ export: z.ZodDefault<z.ZodBoolean>;
4656
+ }, z.core.$strict>;
4657
+ readonly result: z.ZodObject<{
4658
+ photo: z.ZodObject<{
4659
+ id: z.ZodString;
4660
+ filename: z.ZodString;
4661
+ taken_at_ms: z.ZodNullable<z.ZodInt>;
4662
+ width: z.ZodNullable<z.ZodInt>;
4663
+ height: z.ZodNullable<z.ZodInt>;
4664
+ favorite: z.ZodBoolean;
4665
+ title: z.ZodNullable<z.ZodString>;
4666
+ }, z.core.$strict>;
4667
+ path: z.ZodNullable<z.ZodString>;
4668
+ }, z.core.$strict>;
4669
+ readonly kind: "unary";
4670
+ readonly since: "1.37";
4671
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4672
+ };
4673
+ readonly "location.get": {
4674
+ readonly params: z.ZodObject<{
4675
+ timeout_s: z.ZodDefault<z.ZodInt>;
4676
+ }, z.core.$strict>;
4677
+ readonly result: z.ZodObject<{
4678
+ latitude: z.ZodNumber;
4679
+ longitude: z.ZodNumber;
4680
+ accuracy_m: z.ZodNullable<z.ZodNumber>;
4681
+ at_ms: z.ZodInt;
4682
+ source: z.ZodEnum<{
4683
+ windows: "windows";
4684
+ corelocation: "corelocation";
4685
+ geoclue: "geoclue";
4686
+ }>;
4687
+ }, z.core.$strict>;
4688
+ readonly kind: "unary";
4689
+ readonly since: "1.37";
4690
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4691
+ };
4692
+ readonly "windows.registry_read": {
4693
+ readonly params: z.ZodObject<{
4694
+ key: z.ZodString;
4695
+ name: z.ZodOptional<z.ZodString>;
4696
+ }, z.core.$strict>;
4697
+ readonly result: z.ZodObject<{
4698
+ key: z.ZodString;
4699
+ exists: z.ZodBoolean;
4700
+ values: z.ZodArray<z.ZodObject<{
4701
+ name: z.ZodString;
4702
+ type: z.ZodEnum<{
4703
+ REG_SZ: "REG_SZ";
4704
+ REG_EXPAND_SZ: "REG_EXPAND_SZ";
4705
+ REG_MULTI_SZ: "REG_MULTI_SZ";
4706
+ REG_DWORD: "REG_DWORD";
4707
+ REG_QWORD: "REG_QWORD";
4708
+ REG_BINARY: "REG_BINARY";
4709
+ REG_NONE: "REG_NONE";
4710
+ }>;
4711
+ data: z.ZodString;
4712
+ }, z.core.$strict>>;
4713
+ subkeys: z.ZodArray<z.ZodString>;
4714
+ }, z.core.$strict>;
4715
+ readonly kind: "unary";
4716
+ readonly since: "1.37";
4717
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4718
+ };
4719
+ readonly "windows.registry_write": {
4720
+ readonly params: z.ZodObject<{
4721
+ key: z.ZodString;
4722
+ name: z.ZodString;
4723
+ type: z.ZodDefault<z.ZodEnum<{
4724
+ REG_SZ: "REG_SZ";
4725
+ REG_EXPAND_SZ: "REG_EXPAND_SZ";
4726
+ REG_MULTI_SZ: "REG_MULTI_SZ";
4727
+ REG_DWORD: "REG_DWORD";
4728
+ REG_QWORD: "REG_QWORD";
4729
+ REG_BINARY: "REG_BINARY";
4730
+ REG_NONE: "REG_NONE";
4731
+ }>>;
4732
+ data: z.ZodString;
4733
+ delete: z.ZodDefault<z.ZodBoolean>;
4734
+ }, z.core.$strict>;
4735
+ readonly result: z.ZodObject<{
4736
+ key: z.ZodString;
4737
+ name: z.ZodString;
4738
+ deleted: z.ZodBoolean;
4739
+ }, z.core.$strict>;
4740
+ readonly kind: "unary";
4741
+ readonly since: "1.37";
4742
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4743
+ };
4744
+ readonly "windows.services": {
4745
+ readonly params: z.ZodObject<{
4746
+ filter: z.ZodOptional<z.ZodString>;
4747
+ limit: z.ZodDefault<z.ZodInt>;
4748
+ }, z.core.$strict>;
4749
+ readonly result: z.ZodObject<{
4750
+ services: z.ZodArray<z.ZodObject<{
4751
+ name: z.ZodString;
4752
+ display_name: z.ZodString;
4753
+ status: z.ZodString;
4754
+ start_type: z.ZodNullable<z.ZodString>;
4755
+ }, z.core.$strict>>;
4756
+ }, z.core.$strict>;
4757
+ readonly kind: "unary";
4758
+ readonly since: "1.37";
4759
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4760
+ };
4761
+ readonly "windows.service_control": {
4762
+ readonly params: z.ZodObject<{
4763
+ name: z.ZodString;
4764
+ action: z.ZodEnum<{
4765
+ stop: "stop";
4766
+ start: "start";
4767
+ restart: "restart";
4768
+ }>;
4769
+ }, z.core.$strict>;
4770
+ readonly result: z.ZodObject<{
4771
+ name: z.ZodString;
4772
+ status: z.ZodString;
4773
+ }, z.core.$strict>;
4774
+ readonly kind: "unary";
4775
+ readonly since: "1.37";
4776
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4777
+ };
4778
+ readonly "windows.event_log": {
4779
+ readonly params: z.ZodObject<{
4780
+ log: z.ZodDefault<z.ZodString>;
4781
+ levels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4782
+ error: "error";
4783
+ warning: "warning";
4784
+ critical: "critical";
4785
+ information: "information";
4786
+ verbose: "verbose";
4787
+ }>>>;
4788
+ since_ms: z.ZodOptional<z.ZodInt>;
4789
+ limit: z.ZodDefault<z.ZodInt>;
4790
+ }, z.core.$strict>;
4791
+ readonly result: z.ZodObject<{
4792
+ log: z.ZodString;
4793
+ events: z.ZodArray<z.ZodObject<{
4794
+ id: z.ZodInt;
4795
+ level: z.ZodString;
4796
+ source: z.ZodString;
4797
+ at_ms: z.ZodInt;
4798
+ message: z.ZodString;
4799
+ }, z.core.$strict>>;
4800
+ }, z.core.$strict>;
4801
+ readonly kind: "unary";
4802
+ readonly since: "1.37";
4803
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4804
+ };
4805
+ readonly "windows.features": {
4806
+ readonly params: z.ZodObject<{
4807
+ filter: z.ZodOptional<z.ZodString>;
4808
+ }, z.core.$strict>;
4809
+ readonly result: z.ZodObject<{
4810
+ features: z.ZodArray<z.ZodObject<{
4811
+ name: z.ZodString;
4812
+ state: z.ZodString;
4813
+ }, z.core.$strict>>;
4814
+ }, z.core.$strict>;
4815
+ readonly kind: "unary";
4816
+ readonly since: "1.37";
4817
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
4818
+ };
4819
+ readonly "schedule.create": {
4820
+ readonly params: z.ZodObject<{
4821
+ name: z.ZodString;
4822
+ op: z.ZodString;
4823
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4824
+ interval_s: z.ZodInt;
4825
+ max_runs: z.ZodOptional<z.ZodInt>;
4826
+ run_now: z.ZodDefault<z.ZodBoolean>;
4827
+ }, z.core.$strict>;
4828
+ readonly result: z.ZodObject<{
4829
+ task: z.ZodObject<{
4830
+ id: z.ZodString;
4831
+ name: z.ZodString;
4832
+ op: z.ZodString;
4833
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4834
+ interval_s: z.ZodInt;
4835
+ max_runs: z.ZodNullable<z.ZodInt>;
4836
+ runs: z.ZodInt;
4837
+ created_at_ms: z.ZodInt;
4838
+ next_run_at_ms: z.ZodNullable<z.ZodInt>;
4839
+ state: z.ZodEnum<{
4840
+ done: "done";
4841
+ cancelled: "cancelled";
4842
+ active: "active";
4843
+ }>;
4844
+ recent: z.ZodArray<z.ZodObject<{
4845
+ at_ms: z.ZodInt;
4846
+ ok: z.ZodBoolean;
4847
+ elapsed_ms: z.ZodInt;
4848
+ error: z.ZodNullable<z.ZodString>;
4849
+ result_preview: z.ZodNullable<z.ZodString>;
4850
+ }, z.core.$strict>>;
4851
+ }, z.core.$strict>;
4852
+ }, z.core.$strict>;
4853
+ readonly kind: "unary";
4854
+ readonly since: "1.37";
4855
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "INTERNAL"];
4856
+ };
4857
+ readonly "schedule.list": {
4858
+ readonly params: z.ZodObject<{
4859
+ include_finished: z.ZodDefault<z.ZodBoolean>;
4860
+ }, z.core.$strict>;
4861
+ readonly result: z.ZodObject<{
4862
+ tasks: z.ZodArray<z.ZodObject<{
4863
+ id: z.ZodString;
4864
+ name: z.ZodString;
4865
+ op: z.ZodString;
4866
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4867
+ interval_s: z.ZodInt;
4868
+ max_runs: z.ZodNullable<z.ZodInt>;
4869
+ runs: z.ZodInt;
4870
+ created_at_ms: z.ZodInt;
4871
+ next_run_at_ms: z.ZodNullable<z.ZodInt>;
4872
+ state: z.ZodEnum<{
4873
+ done: "done";
4874
+ cancelled: "cancelled";
4875
+ active: "active";
4876
+ }>;
4877
+ recent: z.ZodArray<z.ZodObject<{
4878
+ at_ms: z.ZodInt;
4879
+ ok: z.ZodBoolean;
4880
+ elapsed_ms: z.ZodInt;
4881
+ error: z.ZodNullable<z.ZodString>;
4882
+ result_preview: z.ZodNullable<z.ZodString>;
4883
+ }, z.core.$strict>>;
4884
+ }, z.core.$strict>>;
4885
+ }, z.core.$strict>;
4886
+ readonly kind: "unary";
4887
+ readonly since: "1.37";
4888
+ readonly errors: readonly ["INTERNAL"];
4889
+ };
4890
+ readonly "schedule.cancel": {
4891
+ readonly params: z.ZodObject<{
4892
+ id: z.ZodString;
4893
+ }, z.core.$strict>;
4894
+ readonly result: z.ZodObject<{
4895
+ task: z.ZodObject<{
4896
+ id: z.ZodString;
4897
+ name: z.ZodString;
4898
+ op: z.ZodString;
4899
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4900
+ interval_s: z.ZodInt;
4901
+ max_runs: z.ZodNullable<z.ZodInt>;
4902
+ runs: z.ZodInt;
4903
+ created_at_ms: z.ZodInt;
4904
+ next_run_at_ms: z.ZodNullable<z.ZodInt>;
4905
+ state: z.ZodEnum<{
4906
+ done: "done";
4907
+ cancelled: "cancelled";
4908
+ active: "active";
4909
+ }>;
4910
+ recent: z.ZodArray<z.ZodObject<{
4911
+ at_ms: z.ZodInt;
4912
+ ok: z.ZodBoolean;
4913
+ elapsed_ms: z.ZodInt;
4914
+ error: z.ZodNullable<z.ZodString>;
4915
+ result_preview: z.ZodNullable<z.ZodString>;
4916
+ }, z.core.$strict>>;
4917
+ }, z.core.$strict>;
4918
+ }, z.core.$strict>;
4919
+ readonly kind: "unary";
4920
+ readonly since: "1.37";
4921
+ readonly errors: readonly ["NOT_FOUND", "INTERNAL"];
4922
+ };
4923
+ readonly "notes.folders": {
4924
+ readonly params: z.ZodObject<{}, z.core.$strict>;
4925
+ readonly result: z.ZodObject<{
4926
+ root: z.ZodString;
4927
+ folders: z.ZodArray<z.ZodObject<{
4928
+ folder: z.ZodString;
4929
+ notes: z.ZodInt;
4930
+ }, z.core.$strict>>;
4931
+ }, z.core.$strict>;
4932
+ readonly kind: "unary";
4933
+ readonly since: "1.37";
4934
+ readonly errors: readonly ["INTERNAL"];
4935
+ };
4936
+ readonly "notes.list": {
4937
+ readonly params: z.ZodObject<{
4938
+ folder: z.ZodOptional<z.ZodString>;
4939
+ limit: z.ZodDefault<z.ZodInt>;
4940
+ }, z.core.$strict>;
4941
+ readonly result: z.ZodObject<{
4942
+ root: z.ZodString;
4943
+ notes: z.ZodArray<z.ZodObject<{
4944
+ path: z.ZodString;
4945
+ label: z.ZodString;
4946
+ folder: z.ZodString;
4947
+ bytes: z.ZodInt;
4948
+ modified_at_ms: z.ZodInt;
4949
+ }, z.core.$strict>>;
4950
+ total: z.ZodInt;
4951
+ }, z.core.$strict>;
4952
+ readonly kind: "unary";
4953
+ readonly since: "1.37";
4954
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "INTERNAL"];
4955
+ };
4956
+ readonly "notes.read": {
4957
+ readonly params: z.ZodObject<{
4958
+ path: z.ZodString;
4959
+ }, z.core.$strict>;
4960
+ readonly result: z.ZodObject<{
4961
+ path: z.ZodString;
4962
+ content: z.ZodString;
4963
+ bytes: z.ZodInt;
4964
+ modified_at_ms: z.ZodInt;
4965
+ hash: z.ZodString;
4966
+ }, z.core.$strict>;
4967
+ readonly kind: "unary";
4968
+ readonly since: "1.37";
4969
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "INTERNAL"];
4970
+ };
4971
+ readonly "notes.write": {
4972
+ readonly params: z.ZodObject<{
4973
+ folder: z.ZodDefault<z.ZodString>;
4974
+ label: z.ZodString;
4975
+ content: z.ZodString;
4976
+ if_hash: z.ZodOptional<z.ZodString>;
4977
+ }, z.core.$strict>;
4978
+ readonly result: z.ZodObject<{
4979
+ path: z.ZodString;
4980
+ bytes: z.ZodInt;
4981
+ created: z.ZodBoolean;
4982
+ hash: z.ZodString;
4983
+ }, z.core.$strict>;
4984
+ readonly kind: "unary";
4985
+ readonly since: "1.37";
4986
+ readonly errors: readonly ["INVALID_PARAMS", "CONFLICT", "PERMISSION_DENIED_OS", "INTERNAL"];
4987
+ };
4988
+ readonly "notes.search": {
4989
+ readonly params: z.ZodObject<{
4990
+ query: z.ZodString;
4991
+ limit: z.ZodDefault<z.ZodInt>;
4992
+ }, z.core.$strict>;
4993
+ readonly result: z.ZodObject<{
4994
+ matches: z.ZodArray<z.ZodObject<{
4995
+ path: z.ZodString;
4996
+ label: z.ZodString;
4997
+ folder: z.ZodString;
4998
+ lines: z.ZodArray<z.ZodString>;
4999
+ }, z.core.$strict>>;
5000
+ total: z.ZodInt;
5001
+ }, z.core.$strict>;
5002
+ readonly kind: "unary";
5003
+ readonly since: "1.37";
5004
+ readonly errors: readonly ["INVALID_PARAMS", "INTERNAL"];
5005
+ };
5006
+ readonly "documents.pdf_text": {
5007
+ readonly params: z.ZodObject<{
5008
+ path: z.ZodString;
5009
+ first_page: z.ZodOptional<z.ZodInt>;
5010
+ last_page: z.ZodOptional<z.ZodInt>;
5011
+ max_chars: z.ZodDefault<z.ZodInt>;
5012
+ }, z.core.$strict>;
5013
+ readonly result: z.ZodObject<{
5014
+ pages: z.ZodInt;
5015
+ read: z.ZodArray<z.ZodObject<{
5016
+ page: z.ZodInt;
5017
+ text: z.ZodString;
5018
+ }, z.core.$strict>>;
5019
+ truncated: z.ZodBoolean;
5020
+ title: z.ZodNullable<z.ZodString>;
5021
+ author: z.ZodNullable<z.ZodString>;
5022
+ }, z.core.$strict>;
5023
+ readonly kind: "unary";
5024
+ readonly since: "1.37";
5025
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
5026
+ };
5027
+ readonly "documents.ocr": {
5028
+ readonly params: z.ZodObject<{
5029
+ path: z.ZodString;
5030
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
5031
+ fast: z.ZodDefault<z.ZodBoolean>;
5032
+ }, z.core.$strict>;
5033
+ readonly result: z.ZodObject<{
5034
+ text: z.ZodString;
5035
+ lines: z.ZodArray<z.ZodObject<{
5036
+ text: z.ZodString;
5037
+ confidence: z.ZodNullable<z.ZodNumber>;
5038
+ }, z.core.$strict>>;
5039
+ truncated: z.ZodBoolean;
5040
+ engine: z.ZodString;
5041
+ }, z.core.$strict>;
5042
+ readonly kind: "unary";
5043
+ readonly since: "1.37";
5044
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
5045
+ };
5046
+ readonly "documents.image_resize": {
5047
+ readonly params: z.ZodObject<{
5048
+ path: z.ZodString;
5049
+ out_path: z.ZodOptional<z.ZodString>;
5050
+ max_size: z.ZodOptional<z.ZodInt>;
5051
+ format: z.ZodOptional<z.ZodEnum<{
5052
+ jpeg: "jpeg";
5053
+ png: "png";
5054
+ tiff: "tiff";
5055
+ heic: "heic";
5056
+ bmp: "bmp";
5057
+ gif: "gif";
5058
+ }>>;
5059
+ overwrite: z.ZodDefault<z.ZodBoolean>;
5060
+ }, z.core.$strict>;
5061
+ readonly result: z.ZodObject<{
5062
+ path: z.ZodString;
5063
+ width: z.ZodInt;
5064
+ height: z.ZodInt;
5065
+ bytes: z.ZodInt;
5066
+ }, z.core.$strict>;
5067
+ readonly kind: "unary";
5068
+ readonly since: "1.37";
5069
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
5070
+ };
5071
+ readonly "documents.office_generate": {
5072
+ readonly params: z.ZodObject<{
5073
+ kind: z.ZodEnum<{
5074
+ docx: "docx";
5075
+ xlsx: "xlsx";
5076
+ }>;
5077
+ path: z.ZodString;
5078
+ title: z.ZodOptional<z.ZodString>;
5079
+ paragraphs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5080
+ style: z.ZodDefault<z.ZodEnum<{
5081
+ body: "body";
5082
+ code: "code";
5083
+ title: "title";
5084
+ quote: "quote";
5085
+ heading1: "heading1";
5086
+ heading2: "heading2";
5087
+ heading3: "heading3";
5088
+ bullet: "bullet";
5089
+ numbered: "numbered";
5090
+ }>>;
5091
+ text: z.ZodString;
5092
+ }, z.core.$strict>>>;
5093
+ sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{
5094
+ name: z.ZodString;
5095
+ rows: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
5096
+ header: z.ZodDefault<z.ZodBoolean>;
5097
+ }, z.core.$strict>>>;
5098
+ overwrite: z.ZodDefault<z.ZodBoolean>;
5099
+ }, z.core.$strict>;
5100
+ readonly result: z.ZodObject<{
5101
+ path: z.ZodString;
5102
+ bytes: z.ZodInt;
5103
+ }, z.core.$strict>;
5104
+ readonly kind: "unary";
5105
+ readonly since: "1.37";
5106
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "CONFLICT", "PERMISSION_DENIED_OS", "INTERNAL"];
5107
+ };
5108
+ readonly "entities.ner": {
5109
+ readonly params: z.ZodObject<{
5110
+ text: z.ZodString;
5111
+ labels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5112
+ place: "place";
5113
+ organization: "organization";
5114
+ person: "person";
5115
+ }>>>;
5116
+ }, z.core.$strict>;
5117
+ readonly result: z.ZodObject<{
5118
+ entities: z.ZodArray<z.ZodObject<{
5119
+ text: z.ZodString;
5120
+ label: z.ZodString;
5121
+ start: z.ZodInt;
5122
+ end: z.ZodInt;
5123
+ }, z.core.$strict>>;
5124
+ engine: z.ZodString;
5125
+ }, z.core.$strict>;
5126
+ readonly kind: "unary";
5127
+ readonly since: "1.37";
5128
+ readonly errors: readonly ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"];
5129
+ };
5130
+ readonly "entities.pii": {
5131
+ readonly params: z.ZodObject<{
5132
+ text: z.ZodString;
5133
+ kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5134
+ email: "email";
5135
+ url: "url";
5136
+ phone: "phone";
5137
+ credit_card: "credit_card";
5138
+ us_ssn: "us_ssn";
5139
+ iban: "iban";
5140
+ ip_address: "ip_address";
5141
+ api_key: "api_key";
5142
+ }>>>;
5143
+ redact: z.ZodDefault<z.ZodBoolean>;
5144
+ }, z.core.$strict>;
5145
+ readonly result: z.ZodObject<{
5146
+ findings: z.ZodArray<z.ZodObject<{
5147
+ kind: z.ZodEnum<{
5148
+ email: "email";
5149
+ url: "url";
5150
+ phone: "phone";
5151
+ credit_card: "credit_card";
5152
+ us_ssn: "us_ssn";
5153
+ iban: "iban";
5154
+ ip_address: "ip_address";
5155
+ api_key: "api_key";
5156
+ }>;
5157
+ text: z.ZodString;
5158
+ start: z.ZodInt;
5159
+ end: z.ZodInt;
5160
+ }, z.core.$strict>>;
5161
+ redacted: z.ZodNullable<z.ZodString>;
5162
+ }, z.core.$strict>;
5163
+ readonly kind: "unary";
5164
+ readonly since: "1.37";
5165
+ readonly errors: readonly ["INVALID_PARAMS", "INTERNAL"];
5166
+ };
4173
5167
  };
4174
5168
  type OpName = keyof typeof OPS;
4175
5169
  type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;