@wowok/agent-mcp 2.3.16 → 2.4.1

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.
Files changed (136) hide show
  1. package/dist/customer/index.d.ts +9 -0
  2. package/dist/customer/index.js +9 -0
  3. package/dist/customer/industry-risks.d.ts +4 -0
  4. package/dist/customer/industry-risks.js +45 -31
  5. package/dist/customer/order-monitor.js +57 -57
  6. package/dist/customer/order-strategy.js +89 -89
  7. package/dist/customer/post-purchase.js +97 -97
  8. package/dist/customer/reminder-system.js +26 -26
  9. package/dist/customer/risk-assessment.js +46 -46
  10. package/dist/customer/types.d.ts +4 -4
  11. package/dist/customer/types.js +4 -4
  12. package/dist/customer/user-preferences.d.ts +3 -0
  13. package/dist/customer/user-preferences.js +59 -50
  14. package/dist/experience/intent-distill.js +6 -6
  15. package/dist/experience/realtime-feedback.js +17 -0
  16. package/dist/index.js +360 -273
  17. package/dist/knowledge/acquisition-flywheel.d.ts +3 -0
  18. package/dist/knowledge/acquisition-flywheel.js +73 -64
  19. package/dist/knowledge/arbitration-trust.js +10 -10
  20. package/dist/knowledge/demand-matching.js +8 -8
  21. package/dist/knowledge/dynamic-pricing.js +18 -18
  22. package/dist/knowledge/flywheel-loop.js +11 -11
  23. package/dist/knowledge/glossary.js +22 -22
  24. package/dist/knowledge/guard-ledger.d.ts +19 -0
  25. package/dist/knowledge/guard-ledger.js +246 -0
  26. package/dist/knowledge/guard-lint.d.ts +76 -0
  27. package/dist/knowledge/guard-lint.js +590 -0
  28. package/dist/knowledge/guard-puzzle.d.ts +188 -0
  29. package/dist/knowledge/guard-puzzle.js +804 -0
  30. package/dist/knowledge/guard-risk.d.ts +67 -0
  31. package/dist/knowledge/guard-risk.js +1046 -0
  32. package/dist/knowledge/guard-templates.d.ts +37 -0
  33. package/dist/knowledge/guard-templates.js +329 -0
  34. package/dist/knowledge/guard-translation.d.ts +58 -0
  35. package/dist/knowledge/guard-translation.js +1118 -0
  36. package/dist/knowledge/index.d.ts +17 -0
  37. package/dist/knowledge/index.js +17 -0
  38. package/dist/knowledge/industry-evolution.js +29 -29
  39. package/dist/knowledge/industry-generalizer.js +52 -52
  40. package/dist/knowledge/industry-registry.d.ts +1 -2
  41. package/dist/knowledge/industry-registry.js +43 -36
  42. package/dist/knowledge/intent-metrics.js +67 -67
  43. package/dist/knowledge/process-model.js +80 -80
  44. package/dist/knowledge/reputation-rules.js +9 -9
  45. package/dist/knowledge/reward-templates.js +51 -51
  46. package/dist/knowledge/safety-rules.js +63 -2
  47. package/dist/knowledge/tool-constraints.js +17 -11
  48. package/dist/knowledge/trust-metrics.js +26 -26
  49. package/dist/safety/confirm-gate.d.ts +4 -2
  50. package/dist/safety/confirm-gate.js +48 -4
  51. package/dist/schema/call/allocation.d.ts +24 -14
  52. package/dist/schema/call/arbitration.d.ts +142 -132
  53. package/dist/schema/call/base.d.ts +901 -43
  54. package/dist/schema/call/base.js +77 -13
  55. package/dist/schema/call/bridge-handler.js +15 -2
  56. package/dist/schema/call/bridge.d.ts +795 -27
  57. package/dist/schema/call/bridge.js +37 -0
  58. package/dist/schema/call/contact.d.ts +10 -0
  59. package/dist/schema/call/demand.d.ts +94 -84
  60. package/dist/schema/call/guard.d.ts +229 -46
  61. package/dist/schema/call/guard.js +50 -0
  62. package/dist/schema/call/handler.js +46 -14
  63. package/dist/schema/call/machine.d.ts +158 -138
  64. package/dist/schema/call/order.d.ts +10 -0
  65. package/dist/schema/call/payment.d.ts +10 -0
  66. package/dist/schema/call/permission.d.ts +314 -304
  67. package/dist/schema/call/personal.d.ts +10 -0
  68. package/dist/schema/call/progress.d.ts +10 -0
  69. package/dist/schema/call/proof.d.ts +20 -0
  70. package/dist/schema/call/repository.d.ts +32 -22
  71. package/dist/schema/call/reward.d.ts +10 -0
  72. package/dist/schema/call/semantic.d.ts +9 -2
  73. package/dist/schema/call/semantic.js +617 -25
  74. package/dist/schema/call/service.d.ts +20 -10
  75. package/dist/schema/call/treasury.d.ts +10 -0
  76. package/dist/schema/config/index.d.ts +18 -0
  77. package/dist/schema/config/index.js +17 -0
  78. package/dist/schema/index.d.ts +6 -0
  79. package/dist/schema/index.js +5 -0
  80. package/dist/schema/local/index.d.ts +9 -9
  81. package/dist/schema/local/index.js +9 -0
  82. package/dist/schema/local/wip.d.ts +39 -19
  83. package/dist/schema/local/wip.js +5 -5
  84. package/dist/schema/messenger/index.d.ts +376 -55
  85. package/dist/schema/messenger/index.js +19 -19
  86. package/dist/schema/operations.d.ts +1881 -681
  87. package/dist/schema/operations.js +91 -96
  88. package/dist/schema/project/index.d.ts +21 -0
  89. package/dist/schema/project/index.js +32 -0
  90. package/dist/schema/query/index.d.ts +1074 -168
  91. package/dist/schema/query/index.js +8 -8
  92. package/dist/schema/schema-query/index.d.ts +33 -0
  93. package/dist/schema/schema-query/index.js +36 -0
  94. package/dist/schema/schema-version.d.ts +25 -0
  95. package/dist/schema/schema-version.js +76 -0
  96. package/dist/schema/trust/index.d.ts +407 -0
  97. package/dist/schema/trust/index.js +113 -0
  98. package/dist/schema/utils/guard-parser.js +4 -4
  99. package/dist/schema/utils/node-parser.js +14 -14
  100. package/dist/schemas/bridge_operation.output.json +233 -9
  101. package/dist/schemas/bridge_operation.schema.json +67 -8
  102. package/dist/schemas/config_operation.output.json +18 -0
  103. package/dist/schemas/config_operation.schema.json +34 -0
  104. package/dist/schemas/guard-node-schema.json +82 -0
  105. package/dist/schemas/guard2file.schema.json +8 -0
  106. package/dist/schemas/index.json +19 -1
  107. package/dist/schemas/machineNode2file.schema.json +8 -0
  108. package/dist/schemas/messenger_operation.output.json +236 -10
  109. package/dist/schemas/onchain_events.output.json +718 -0
  110. package/dist/schemas/onchain_operations.output.json +286 -11
  111. package/dist/schemas/onchain_operations.schema.json +19 -16
  112. package/dist/schemas/onchain_operations_allocation.schema.json +8 -0
  113. package/dist/schemas/onchain_operations_arbitration.schema.json +8 -0
  114. package/dist/schemas/onchain_operations_contact.schema.json +8 -0
  115. package/dist/schemas/onchain_operations_demand.schema.json +8 -0
  116. package/dist/schemas/onchain_operations_gen_passport.schema.json +16 -0
  117. package/dist/schemas/onchain_operations_guard.schema.json +11 -16
  118. package/dist/schemas/onchain_operations_machine.schema.json +8 -0
  119. package/dist/schemas/onchain_operations_order.schema.json +8 -0
  120. package/dist/schemas/onchain_operations_payment.schema.json +8 -0
  121. package/dist/schemas/onchain_operations_permission.schema.json +8 -0
  122. package/dist/schemas/onchain_operations_personal.schema.json +8 -0
  123. package/dist/schemas/onchain_operations_progress.schema.json +8 -0
  124. package/dist/schemas/onchain_operations_repository.schema.json +8 -0
  125. package/dist/schemas/onchain_operations_reward.schema.json +8 -0
  126. package/dist/schemas/onchain_operations_service.schema.json +8 -0
  127. package/dist/schemas/onchain_operations_treasury.schema.json +8 -0
  128. package/dist/schemas/onchain_table_data.output.json +718 -0
  129. package/dist/schemas/project_operation.output.json +18 -0
  130. package/dist/schemas/project_operation.schema.json +42 -0
  131. package/dist/schemas/query_toolkit.schema.json +360 -368
  132. package/dist/schemas/schema_query.schema.json +6 -3
  133. package/dist/schemas/trust_score.output.json +327 -0
  134. package/dist/schemas/trust_score.schema.json +46 -0
  135. package/dist/schemas/wip_file.output.json +24 -1
  136. package/package.json +2 -2
@@ -1133,6 +1133,7 @@ export declare const CallService_DataSchema: z.ZodObject<{
1133
1133
  }>, "many">;
1134
1134
  }, "strip", z.ZodTypeAny, {
1135
1135
  description: string;
1136
+ threshold: string | number;
1136
1137
  allocators: {
1137
1138
  guard: string;
1138
1139
  sharing: {
@@ -1152,9 +1153,9 @@ export declare const CallService_DataSchema: z.ZodObject<{
1152
1153
  max?: string | number | null | undefined;
1153
1154
  fix?: string | number | undefined;
1154
1155
  }[];
1155
- threshold: string | number;
1156
1156
  }, {
1157
1157
  description: string;
1158
+ threshold: string | number;
1158
1159
  allocators: {
1159
1160
  guard: string;
1160
1161
  sharing: {
@@ -1174,7 +1175,6 @@ export declare const CallService_DataSchema: z.ZodObject<{
1174
1175
  max?: string | number | null | undefined;
1175
1176
  fix?: string | number | undefined;
1176
1177
  }[];
1177
- threshold: string | number;
1178
1178
  }>, z.ZodNull]>>;
1179
1179
  buy_guard: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
1180
1180
  compensation_fund_add: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -1293,6 +1293,7 @@ export declare const CallService_DataSchema: z.ZodObject<{
1293
1293
  machine?: string | null | undefined;
1294
1294
  order_allocators?: {
1295
1295
  description: string;
1296
+ threshold: string | number;
1296
1297
  allocators: {
1297
1298
  guard: string;
1298
1299
  sharing: {
@@ -1312,7 +1313,6 @@ export declare const CallService_DataSchema: z.ZodObject<{
1312
1313
  max?: string | number | null | undefined;
1313
1314
  fix?: string | number | undefined;
1314
1315
  }[];
1315
- threshold: string | number;
1316
1316
  } | null | undefined;
1317
1317
  sales?: {
1318
1318
  op: "add";
@@ -1485,6 +1485,7 @@ export declare const CallService_DataSchema: z.ZodObject<{
1485
1485
  machine?: string | null | undefined;
1486
1486
  order_allocators?: {
1487
1487
  description: string;
1488
+ threshold: string | number;
1488
1489
  allocators: {
1489
1490
  guard: string;
1490
1491
  sharing: {
@@ -1504,7 +1505,6 @@ export declare const CallService_DataSchema: z.ZodObject<{
1504
1505
  max?: string | number | null | undefined;
1505
1506
  fix?: string | number | undefined;
1506
1507
  }[];
1507
- threshold: string | number;
1508
1508
  } | null | undefined;
1509
1509
  sales?: {
1510
1510
  op: "add";
@@ -2312,6 +2312,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
2312
2312
  }>, "many">;
2313
2313
  }, "strip", z.ZodTypeAny, {
2314
2314
  description: string;
2315
+ threshold: string | number;
2315
2316
  allocators: {
2316
2317
  guard: string;
2317
2318
  sharing: {
@@ -2331,9 +2332,9 @@ export declare const CallService_InputSchema: z.ZodObject<{
2331
2332
  max?: string | number | null | undefined;
2332
2333
  fix?: string | number | undefined;
2333
2334
  }[];
2334
- threshold: string | number;
2335
2335
  }, {
2336
2336
  description: string;
2337
+ threshold: string | number;
2337
2338
  allocators: {
2338
2339
  guard: string;
2339
2340
  sharing: {
@@ -2353,7 +2354,6 @@ export declare const CallService_InputSchema: z.ZodObject<{
2353
2354
  max?: string | number | null | undefined;
2354
2355
  fix?: string | number | undefined;
2355
2356
  }[];
2356
- threshold: string | number;
2357
2357
  }>, z.ZodNull]>>;
2358
2358
  buy_guard: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
2359
2359
  compensation_fund_add: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -2472,6 +2472,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
2472
2472
  machine?: string | null | undefined;
2473
2473
  order_allocators?: {
2474
2474
  description: string;
2475
+ threshold: string | number;
2475
2476
  allocators: {
2476
2477
  guard: string;
2477
2478
  sharing: {
@@ -2491,7 +2492,6 @@ export declare const CallService_InputSchema: z.ZodObject<{
2491
2492
  max?: string | number | null | undefined;
2492
2493
  fix?: string | number | undefined;
2493
2494
  }[];
2494
- threshold: string | number;
2495
2495
  } | null | undefined;
2496
2496
  sales?: {
2497
2497
  op: "add";
@@ -2664,6 +2664,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
2664
2664
  machine?: string | null | undefined;
2665
2665
  order_allocators?: {
2666
2666
  description: string;
2667
+ threshold: string | number;
2667
2668
  allocators: {
2668
2669
  guard: string;
2669
2670
  sharing: {
@@ -2683,7 +2684,6 @@ export declare const CallService_InputSchema: z.ZodObject<{
2683
2684
  max?: string | number | null | undefined;
2684
2685
  fix?: string | number | undefined;
2685
2686
  }[];
2686
- threshold: string | number;
2687
2687
  } | null | undefined;
2688
2688
  sales?: {
2689
2689
  op: "add";
@@ -2845,6 +2845,8 @@ export declare const CallService_InputSchema: z.ZodObject<{
2845
2845
  confirmed: z.ZodOptional<z.ZodBoolean>;
2846
2846
  user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2847
2847
  project: z.ZodOptional<z.ZodString>;
2848
+ client_schema_version: z.ZodOptional<z.ZodString>;
2849
+ schema_strict_mode: z.ZodOptional<z.ZodBoolean>;
2848
2850
  }, "strict", z.ZodTypeAny, {
2849
2851
  account: string;
2850
2852
  no_cache?: boolean | undefined;
@@ -2854,6 +2856,8 @@ export declare const CallService_InputSchema: z.ZodObject<{
2854
2856
  confirmed?: boolean | undefined;
2855
2857
  user_intent_phrases?: string[] | undefined;
2856
2858
  project?: string | undefined;
2859
+ client_schema_version?: string | undefined;
2860
+ schema_strict_mode?: boolean | undefined;
2857
2861
  }, {
2858
2862
  no_cache?: boolean | undefined;
2859
2863
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
@@ -2863,6 +2867,8 @@ export declare const CallService_InputSchema: z.ZodObject<{
2863
2867
  confirmed?: boolean | undefined;
2864
2868
  user_intent_phrases?: string[] | undefined;
2865
2869
  project?: string | undefined;
2870
+ client_schema_version?: string | undefined;
2871
+ schema_strict_mode?: boolean | undefined;
2866
2872
  }>>;
2867
2873
  submission: z.ZodOptional<z.ZodObject<{
2868
2874
  type: z.ZodLiteral<"submission">;
@@ -3066,6 +3072,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
3066
3072
  machine?: string | null | undefined;
3067
3073
  order_allocators?: {
3068
3074
  description: string;
3075
+ threshold: string | number;
3069
3076
  allocators: {
3070
3077
  guard: string;
3071
3078
  sharing: {
@@ -3085,7 +3092,6 @@ export declare const CallService_InputSchema: z.ZodObject<{
3085
3092
  max?: string | number | null | undefined;
3086
3093
  fix?: string | number | undefined;
3087
3094
  }[];
3088
- threshold: string | number;
3089
3095
  } | null | undefined;
3090
3096
  sales?: {
3091
3097
  op: "add";
@@ -3274,6 +3280,8 @@ export declare const CallService_InputSchema: z.ZodObject<{
3274
3280
  confirmed?: boolean | undefined;
3275
3281
  user_intent_phrases?: string[] | undefined;
3276
3282
  project?: string | undefined;
3283
+ client_schema_version?: string | undefined;
3284
+ schema_strict_mode?: boolean | undefined;
3277
3285
  } | undefined;
3278
3286
  }, {
3279
3287
  data: {
@@ -3297,6 +3305,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
3297
3305
  machine?: string | null | undefined;
3298
3306
  order_allocators?: {
3299
3307
  description: string;
3308
+ threshold: string | number;
3300
3309
  allocators: {
3301
3310
  guard: string;
3302
3311
  sharing: {
@@ -3316,7 +3325,6 @@ export declare const CallService_InputSchema: z.ZodObject<{
3316
3325
  max?: string | number | null | undefined;
3317
3326
  fix?: string | number | undefined;
3318
3327
  }[];
3319
- threshold: string | number;
3320
3328
  } | null | undefined;
3321
3329
  sales?: {
3322
3330
  op: "add";
@@ -3505,5 +3513,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
3505
3513
  confirmed?: boolean | undefined;
3506
3514
  user_intent_phrases?: string[] | undefined;
3507
3515
  project?: string | undefined;
3516
+ client_schema_version?: string | undefined;
3517
+ schema_strict_mode?: boolean | undefined;
3508
3518
  } | undefined;
3509
3519
  }>;
@@ -1776,6 +1776,8 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
1776
1776
  confirmed: z.ZodOptional<z.ZodBoolean>;
1777
1777
  user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1778
1778
  project: z.ZodOptional<z.ZodString>;
1779
+ client_schema_version: z.ZodOptional<z.ZodString>;
1780
+ schema_strict_mode: z.ZodOptional<z.ZodBoolean>;
1779
1781
  }, "strict", z.ZodTypeAny, {
1780
1782
  account: string;
1781
1783
  no_cache?: boolean | undefined;
@@ -1785,6 +1787,8 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
1785
1787
  confirmed?: boolean | undefined;
1786
1788
  user_intent_phrases?: string[] | undefined;
1787
1789
  project?: string | undefined;
1790
+ client_schema_version?: string | undefined;
1791
+ schema_strict_mode?: boolean | undefined;
1788
1792
  }, {
1789
1793
  no_cache?: boolean | undefined;
1790
1794
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
@@ -1794,6 +1798,8 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
1794
1798
  confirmed?: boolean | undefined;
1795
1799
  user_intent_phrases?: string[] | undefined;
1796
1800
  project?: string | undefined;
1801
+ client_schema_version?: string | undefined;
1802
+ schema_strict_mode?: boolean | undefined;
1797
1803
  }>>;
1798
1804
  submission: z.ZodOptional<z.ZodObject<{
1799
1805
  type: z.ZodLiteral<"submission">;
@@ -2135,6 +2141,8 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
2135
2141
  confirmed?: boolean | undefined;
2136
2142
  user_intent_phrases?: string[] | undefined;
2137
2143
  project?: string | undefined;
2144
+ client_schema_version?: string | undefined;
2145
+ schema_strict_mode?: boolean | undefined;
2138
2146
  } | undefined;
2139
2147
  }, {
2140
2148
  data: {
@@ -2296,5 +2304,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
2296
2304
  confirmed?: boolean | undefined;
2297
2305
  user_intent_phrases?: string[] | undefined;
2298
2306
  project?: string | undefined;
2307
+ client_schema_version?: string | undefined;
2308
+ schema_strict_mode?: boolean | undefined;
2299
2309
  } | undefined;
2300
2310
  }>;
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const ConfigOperationInputSchema: z.ZodObject<{
3
+ action: z.ZodEnum<["list", "toggle", "enable", "disable", "reset", "info"]>;
4
+ service: z.ZodOptional<z.ZodString>;
5
+ }, "strict", z.ZodTypeAny, {
6
+ action: "reset" | "info" | "list" | "toggle" | "enable" | "disable";
7
+ service?: string | undefined;
8
+ }, {
9
+ action: "reset" | "info" | "list" | "toggle" | "enable" | "disable";
10
+ service?: string | undefined;
11
+ }>;
12
+ export declare const ConfigOperationOutputSchema: z.ZodObject<{
13
+ result: z.ZodAny;
14
+ }, "strict", z.ZodTypeAny, {
15
+ result?: any;
16
+ }, {
17
+ result?: any;
18
+ }>;
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ export const ConfigOperationInputSchema = z
3
+ .object({
4
+ action: z
5
+ .enum(["list", "toggle", "enable", "disable", "reset", "info"])
6
+ .describe("Config action to perform"),
7
+ service: z
8
+ .string()
9
+ .optional()
10
+ .describe("Service name (required for toggle/enable/disable/reset/info)"),
11
+ })
12
+ .strict();
13
+ export const ConfigOperationOutputSchema = z
14
+ .object({
15
+ result: z.any().describe("Config result — shape depends on action"),
16
+ })
17
+ .strict();
@@ -6,3 +6,9 @@ export * from './common/index.js';
6
6
  export * from './operations.js';
7
7
  export * from './utils/guard-parser.js';
8
8
  export * from './utils/node-parser.js';
9
+ export * from './project/index.js';
10
+ export * from './config/index.js';
11
+ export * from './trust/index.js';
12
+ export * from './schema-query/index.js';
13
+ export { MCP_SCHEMA_VERSION, getSchemaVersions, checkClientSchemaCompatibility, attachSchemaWarning, } from './schema-version.js';
14
+ export type { SchemaVersions, SchemaCompatibilityMode, SchemaCheckOptions, SchemaCheckResult, } from './schema-version.js';
@@ -6,3 +6,8 @@ export * from './common/index.js';
6
6
  export * from './operations.js';
7
7
  export * from './utils/guard-parser.js';
8
8
  export * from './utils/node-parser.js';
9
+ export * from './project/index.js';
10
+ export * from './config/index.js';
11
+ export * from './trust/index.js';
12
+ export * from './schema-query/index.js';
13
+ export { MCP_SCHEMA_VERSION, getSchemaVersions, checkClientSchemaCompatibility, attachSchemaWarning, } from './schema-version.js';
@@ -7559,7 +7559,7 @@ export declare const LocalMarkOperationSchema: z.ZodEffects<z.ZodObject<{
7559
7559
  } | undefined;
7560
7560
  tags?: string[] | undefined;
7561
7561
  }>, "many">;
7562
- }, "strip", z.ZodTypeAny, {
7562
+ }, "strict", z.ZodTypeAny, {
7563
7563
  data: {
7564
7564
  address: string;
7565
7565
  name?: {
@@ -7583,7 +7583,7 @@ export declare const LocalMarkOperationSchema: z.ZodEffects<z.ZodObject<{
7583
7583
  remove: z.ZodOptional<z.ZodObject<{
7584
7584
  op: z.ZodLiteral<"remove">;
7585
7585
  names: z.ZodArray<z.ZodString, "many">;
7586
- }, "strip", z.ZodTypeAny, {
7586
+ }, "strict", z.ZodTypeAny, {
7587
7587
  op: "remove";
7588
7588
  names: string[];
7589
7589
  }, {
@@ -7592,12 +7592,12 @@ export declare const LocalMarkOperationSchema: z.ZodEffects<z.ZodObject<{
7592
7592
  }>>;
7593
7593
  clear: z.ZodOptional<z.ZodObject<{
7594
7594
  op: z.ZodLiteral<"clear">;
7595
- }, "strip", z.ZodTypeAny, {
7595
+ }, "strict", z.ZodTypeAny, {
7596
7596
  op: "clear";
7597
7597
  }, {
7598
7598
  op: "clear";
7599
7599
  }>>;
7600
- }, "strip", z.ZodTypeAny, {
7600
+ }, "strict", z.ZodTypeAny, {
7601
7601
  add?: {
7602
7602
  data: {
7603
7603
  address: string;
@@ -7770,7 +7770,7 @@ export declare const LocalInfoOperationSchema: z.ZodEffects<z.ZodObject<{
7770
7770
  updatedAt?: number | undefined;
7771
7771
  contents?: string[] | undefined;
7772
7772
  }>, "many">;
7773
- }, "strip", z.ZodTypeAny, {
7773
+ }, "strict", z.ZodTypeAny, {
7774
7774
  data: {
7775
7775
  name: string;
7776
7776
  default: string;
@@ -7792,7 +7792,7 @@ export declare const LocalInfoOperationSchema: z.ZodEffects<z.ZodObject<{
7792
7792
  remove: z.ZodOptional<z.ZodObject<{
7793
7793
  op: z.ZodLiteral<"remove">;
7794
7794
  data: z.ZodArray<z.ZodString, "many">;
7795
- }, "strip", z.ZodTypeAny, {
7795
+ }, "strict", z.ZodTypeAny, {
7796
7796
  data: string[];
7797
7797
  op: "remove";
7798
7798
  }, {
@@ -7803,7 +7803,7 @@ export declare const LocalInfoOperationSchema: z.ZodEffects<z.ZodObject<{
7803
7803
  op: z.ZodLiteral<"reset">;
7804
7804
  name: z.ZodString;
7805
7805
  contents: z.ZodArray<z.ZodString, "many">;
7806
- }, "strip", z.ZodTypeAny, {
7806
+ }, "strict", z.ZodTypeAny, {
7807
7807
  name: string;
7808
7808
  contents: string[];
7809
7809
  op: "reset";
@@ -7814,12 +7814,12 @@ export declare const LocalInfoOperationSchema: z.ZodEffects<z.ZodObject<{
7814
7814
  }>>;
7815
7815
  clear: z.ZodOptional<z.ZodObject<{
7816
7816
  op: z.ZodLiteral<"clear">;
7817
- }, "strip", z.ZodTypeAny, {
7817
+ }, "strict", z.ZodTypeAny, {
7818
7818
  op: "clear";
7819
7819
  }, {
7820
7820
  op: "clear";
7821
7821
  }>>;
7822
- }, "strip", z.ZodTypeAny, {
7822
+ }, "strict", z.ZodTypeAny, {
7823
7823
  add?: {
7824
7824
  data: {
7825
7825
  name: string;
@@ -665,6 +665,7 @@ export const LocalMarkOperationSchema = z
665
665
  .min(1)
666
666
  .describe("Array of mark data to add (at least 1 item)"),
667
667
  })
668
+ .strict()
668
669
  .optional()
669
670
  .describe("Add one or more marks"),
670
671
  remove: z
@@ -675,15 +676,18 @@ export const LocalMarkOperationSchema = z
675
676
  .min(1)
676
677
  .describe("Array of mark names or addresses to remove"),
677
678
  })
679
+ .strict()
678
680
  .optional()
679
681
  .describe("Remove marks by name or address"),
680
682
  clear: z
681
683
  .object({
682
684
  op: z.literal("clear").describe("Operation type: clear all marks"),
683
685
  })
686
+ .strict()
684
687
  .optional()
685
688
  .describe("Remove all marks"),
686
689
  })
690
+ .strict()
687
691
  .refine((data) => data.add !== undefined || data.remove !== undefined || data.clear !== undefined, {
688
692
  message: "Exactly one operation field (add/remove/clear) must be specified. " +
689
693
  "CORRECT format: {add: {op:'add', data:[...]}} or {remove: {op:'remove', names:[...]}} or {clear: {op:'clear'}}. " +
@@ -706,6 +710,7 @@ export const LocalInfoOperationSchema = z
706
710
  .min(1)
707
711
  .describe("Array of info data to add (at least 1 item)"),
708
712
  })
713
+ .strict()
709
714
  .optional()
710
715
  .describe("Add one or more info entries"),
711
716
  remove: z
@@ -716,6 +721,7 @@ export const LocalInfoOperationSchema = z
716
721
  .min(1)
717
722
  .describe("Array of info names to remove"),
718
723
  })
724
+ .strict()
719
725
  .optional()
720
726
  .describe("Remove info entries by name"),
721
727
  reset: z
@@ -726,15 +732,18 @@ export const LocalInfoOperationSchema = z
726
732
  .array(z.string())
727
733
  .describe("New content list to replace existing contents"),
728
734
  })
735
+ .strict()
729
736
  .optional()
730
737
  .describe("Reset the contents of an existing info entry"),
731
738
  clear: z
732
739
  .object({
733
740
  op: z.literal("clear").describe("Operation type: clear all info"),
734
741
  })
742
+ .strict()
735
743
  .optional()
736
744
  .describe("Remove all info entries"),
737
745
  })
746
+ .strict()
738
747
  .refine((data) => data.add !== undefined || data.remove !== undefined || data.reset !== undefined || data.clear !== undefined, {
739
748
  message: "Exactly one operation field (add/remove/reset/clear) must be specified. " +
740
749
  "CORRECT format: {add: {op:'add', data:[...]}} or {remove: {op:'remove', data:[...]}} etc. " +
@@ -136,8 +136,8 @@ export declare const WipSignatureArraySchema: z.ZodUnion<[z.ZodObject<{
136
136
  }>, "many">]>;
137
137
  export declare const WipMetaSchema: z.ZodObject<{
138
138
  type: z.ZodLiteral<"wip">;
139
- version: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
140
- created: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
139
+ version: z.ZodString;
140
+ created: z.ZodString;
141
141
  hash: z.ZodString;
142
142
  algorithm: z.ZodLiteral<"sha256">;
143
143
  signature: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -173,9 +173,9 @@ export declare const WipMetaSchema: z.ZodObject<{
173
173
  }>, "many">]>>;
174
174
  }, "strip", z.ZodTypeAny, {
175
175
  type: "wip";
176
- version: string | number;
176
+ version: string;
177
177
  algorithm: "sha256";
178
- created: string | number;
178
+ created: string;
179
179
  hash: string;
180
180
  signature?: {
181
181
  value: string;
@@ -190,9 +190,9 @@ export declare const WipMetaSchema: z.ZodObject<{
190
190
  }[] | undefined;
191
191
  }, {
192
192
  type: "wip";
193
- version: string | number;
193
+ version: string;
194
194
  algorithm: "sha256";
195
- created: string | number;
195
+ created: string;
196
196
  hash: string;
197
197
  signature?: {
198
198
  value: string;
@@ -260,8 +260,8 @@ export declare const WipFileSchema: z.ZodObject<{
260
260
  }>;
261
261
  meta: z.ZodObject<{
262
262
  type: z.ZodLiteral<"wip">;
263
- version: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
264
- created: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
263
+ version: z.ZodString;
264
+ created: z.ZodString;
265
265
  hash: z.ZodString;
266
266
  algorithm: z.ZodLiteral<"sha256">;
267
267
  signature: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -297,9 +297,9 @@ export declare const WipFileSchema: z.ZodObject<{
297
297
  }>, "many">]>>;
298
298
  }, "strip", z.ZodTypeAny, {
299
299
  type: "wip";
300
- version: string | number;
300
+ version: string;
301
301
  algorithm: "sha256";
302
- created: string | number;
302
+ created: string;
303
303
  hash: string;
304
304
  signature?: {
305
305
  value: string;
@@ -314,9 +314,9 @@ export declare const WipFileSchema: z.ZodObject<{
314
314
  }[] | undefined;
315
315
  }, {
316
316
  type: "wip";
317
- version: string | number;
317
+ version: string;
318
318
  algorithm: "sha256";
319
- created: string | number;
319
+ created: string;
320
320
  hash: string;
321
321
  signature?: {
322
322
  value: string;
@@ -346,9 +346,9 @@ export declare const WipFileSchema: z.ZodObject<{
346
346
  };
347
347
  meta: {
348
348
  type: "wip";
349
- version: string | number;
349
+ version: string;
350
350
  algorithm: "sha256";
351
- created: string | number;
351
+ created: string;
352
352
  hash: string;
353
353
  signature?: {
354
354
  value: string;
@@ -378,9 +378,9 @@ export declare const WipFileSchema: z.ZodObject<{
378
378
  };
379
379
  meta: {
380
380
  type: "wip";
381
- version: string | number;
381
+ version: string;
382
382
  algorithm: "sha256";
383
- created: string | number;
383
+ created: string;
384
384
  hash: string;
385
385
  signature?: {
386
386
  value: string;
@@ -740,7 +740,19 @@ export declare const WipOperationOutputSchema: z.ZodDiscriminatedUnion<"type", [
740
740
  hashValid: z.ZodBoolean;
741
741
  signatureValid: z.ZodOptional<z.ZodBoolean>;
742
742
  hasSignature: z.ZodBoolean;
743
- signatures: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
743
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
744
+ publicKey: z.ZodString;
745
+ address: z.ZodOptional<z.ZodString>;
746
+ valid: z.ZodBoolean;
747
+ }, "strip", z.ZodTypeAny, {
748
+ valid: boolean;
749
+ publicKey: string;
750
+ address?: string | undefined;
751
+ }, {
752
+ valid: boolean;
753
+ publicKey: string;
754
+ address?: string | undefined;
755
+ }>, "many">>;
744
756
  }, "strip", z.ZodTypeAny, {
745
757
  valid: boolean;
746
758
  type: "verify";
@@ -748,7 +760,11 @@ export declare const WipOperationOutputSchema: z.ZodDiscriminatedUnion<"type", [
748
760
  hasSignature: boolean;
749
761
  error?: string | undefined;
750
762
  signatureValid?: boolean | undefined;
751
- signatures?: any[] | undefined;
763
+ signatures?: {
764
+ valid: boolean;
765
+ publicKey: string;
766
+ address?: string | undefined;
767
+ }[] | undefined;
752
768
  }, {
753
769
  valid: boolean;
754
770
  type: "verify";
@@ -756,7 +772,11 @@ export declare const WipOperationOutputSchema: z.ZodDiscriminatedUnion<"type", [
756
772
  hasSignature: boolean;
757
773
  error?: string | undefined;
758
774
  signatureValid?: boolean | undefined;
759
- signatures?: any[] | undefined;
775
+ signatures?: {
776
+ valid: boolean;
777
+ publicKey: string;
778
+ address?: string | undefined;
779
+ }[] | undefined;
760
780
  }>, z.ZodObject<{
761
781
  type: z.ZodLiteral<"sign">;
762
782
  filePath: z.ZodString;
@@ -51,7 +51,7 @@ export const WipPayloadSchema = z
51
51
  export const WipSignatureSchema = z
52
52
  .object({
53
53
  value: z.string().describe("Base64 encoded signature value"),
54
- publicKey: z.string().describe("Verification public key (Base64 encoded 32 bytes) or DID"),
54
+ publicKey: z.string().describe("Verification public key (Base64 encoded, 897 bytes for Falcon-512)"),
55
55
  algorithm: SignatureAlgorithmSchema.describe("Signature algorithm"),
56
56
  address: z.string().optional().describe("Signer address"),
57
57
  })
@@ -62,9 +62,9 @@ export const WipSignatureArraySchema = z
62
62
  export const WipMetaSchema = z
63
63
  .object({
64
64
  type: z.literal("wip").describe("File type identifier, fixed as wip"),
65
- version: z.union([z.string(), z.number()]).describe("Format version number"),
66
- created: z.union([z.string(), z.number()]).describe("Creation time (ISO 8601 format)"),
67
- hash: z.string().describe("SHA-256 hash of payload, format: sha256:hexString"),
65
+ version: z.string().describe("Format version number"),
66
+ created: z.string().describe("Creation time in ISO 8601 format"),
67
+ hash: z.string().describe("SHA-256 hash of { wip, payload } as a lowercase hex string (no prefix)"),
68
68
  algorithm: HashAlgorithmSchema.describe("Hash algorithm identifier"),
69
69
  signature: WipSignatureArraySchema.optional().describe("Optional digital signature"),
70
70
  })
@@ -172,7 +172,7 @@ export const WipOperationOutputSchema = z.discriminatedUnion("type", [
172
172
  hashValid: z.boolean(),
173
173
  signatureValid: z.boolean().optional(),
174
174
  hasSignature: z.boolean(),
175
- signatures: z.array(z.any()).optional(),
175
+ signatures: z.array(WipSignatureVerificationSchema).optional(),
176
176
  }),
177
177
  z.object({
178
178
  type: z.literal("sign"),