@wowok/agent-mcp 2.6.1 → 2.6.4
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/customer/customer-advice.d.ts +31 -0
- package/dist/customer/customer-advice.js +129 -0
- package/dist/customer/index.d.ts +2 -0
- package/dist/customer/index.js +2 -0
- package/dist/customer/info-puzzle.d.ts +9 -2
- package/dist/customer/info-puzzle.js +34 -7
- package/dist/customer/order-monitor.d.ts +2 -0
- package/dist/customer/order-monitor.js +3 -2
- package/dist/customer/post-purchase.d.ts +2 -0
- package/dist/customer/post-purchase.js +6 -5
- package/dist/customer/preorder-compare.d.ts +24 -0
- package/dist/customer/preorder-compare.js +34 -0
- package/dist/customer/reminder-system.d.ts +2 -0
- package/dist/customer/reminder-system.js +2 -1
- package/dist/customer/risk-assessment.js +30 -7
- package/dist/customer/types.d.ts +7 -0
- package/dist/examples/arbitration-dispute-create.json +41 -0
- package/dist/examples/arbitration-vote-weighted.json +35 -0
- package/dist/examples/arbitration-voting-guard-add.json +38 -0
- package/dist/examples/demand-present-service.json +33 -0
- package/dist/examples/gen-passport-verify-guard.json +48 -0
- package/dist/examples/guard-template-balance-check.json +59 -0
- package/dist/examples/guard-template-time-lock.json +60 -0
- package/dist/examples/insurance-guard-claim-timelock.json +75 -0
- package/dist/examples/insurance-guard-withdraw-allocation.json +96 -0
- package/dist/examples/insurance-machine-create-publish.json +75 -0
- package/dist/examples/insurance-service-allocators-publish.json +56 -0
- package/dist/examples/machine-multisig-threshold.json +86 -0
- package/dist/examples/machine-template-7node-rental.json +119 -0
- package/dist/examples/payment-scenario-bound.json +45 -0
- package/dist/examples/rental-ziroom-machine-create.json +149 -0
- package/dist/examples/rental-ziroom-permission-create.json +42 -0
- package/dist/examples/rental-ziroom-service-create.json +89 -0
- package/dist/examples/retail-adv-guard-customer-win-create.json +80 -0
- package/dist/examples/retail-adv-guard-messenger-proof-create.json +65 -0
- package/dist/examples/retail-adv-guard-reward-timeout-create.json +92 -0
- package/dist/examples/retail-adv-reward-guard-add.json +51 -0
- package/dist/examples/retail-myshop-allocation-activate.json +55 -0
- package/dist/examples/retail-myshop-arbitration-create.json +40 -0
- package/dist/examples/retail-myshop-contact-create.json +43 -0
- package/dist/examples/retail-myshop-order-create.json +56 -0
- package/dist/examples/retail-myshop-progress-operate.json +38 -0
- package/dist/examples/retail-myshop-reward-create.json +35 -0
- package/dist/examples/retail-myshop-service-create.json +88 -0
- package/dist/examples/service-discount-issue.json +46 -0
- package/dist/examples/threebody-guard-create.json +56 -0
- package/dist/examples/threebody-machine-create.json +72 -0
- package/dist/examples/threebody-permission-create.json +38 -0
- package/dist/examples/threebody-service-allocators.json +49 -0
- package/dist/examples/travel-guard-time-lock.json +69 -0
- package/dist/examples/travel-guard-weather-oracle.json +70 -0
- package/dist/examples/travel-machine-create.json +136 -0
- package/dist/examples/travel-repository-create.json +47 -0
- package/dist/examples/travel-service-create.json +102 -0
- package/dist/examples/travel-treasury-create.json +34 -0
- package/dist/examples/treasury-deposit.json +37 -0
- package/dist/examples/treasury-withdraw.json +38 -0
- package/dist/extensions/business-modules.d.ts +49 -0
- package/dist/extensions/business-modules.js +287 -0
- package/dist/extensions/capability-manifest.js +216 -29
- package/dist/extensions/constraint-registry.js +21 -19
- package/dist/extensions/metric-registry.js +14 -14
- package/dist/extensions/mode-evaluator.js +16 -16
- package/dist/extensions/modes.js +141 -49
- package/dist/extensions/registry.d.ts +16 -9
- package/dist/extensions/registry.js +132 -44
- package/dist/extensions/types.d.ts +2 -0
- package/dist/index.js +50 -0
- package/dist/knowledge/deployment-scanner.js +1 -1
- package/dist/knowledge/fund-layer.d.ts +138 -0
- package/dist/knowledge/fund-layer.js +969 -0
- package/dist/knowledge/guard-render.d.ts +57 -0
- package/dist/knowledge/guard-render.js +700 -0
- package/dist/knowledge/guard-submission-prompt.d.ts +31 -0
- package/dist/knowledge/guard-submission-prompt.js +171 -0
- package/dist/knowledge/guard-templates.d.ts +10 -0
- package/dist/knowledge/guard-templates.js +50 -0
- package/dist/knowledge/index.d.ts +2 -2
- package/dist/knowledge/index.js +2 -2
- package/dist/knowledge/machine-ledger.js +1 -1
- package/dist/knowledge/machine-render.d.ts +41 -0
- package/dist/knowledge/machine-render.js +565 -0
- package/dist/knowledge/machine-risk.js +4 -1
- package/dist/knowledge/machine-templates.js +4 -4
- package/dist/knowledge/progress-context.js +1 -1
- package/dist/knowledge/progress-ledger.js +3 -3
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/progress-translation.js +1 -1
- package/dist/knowledge/reward-confirm.js +2 -2
- package/dist/knowledge/reward-puzzle.js +1 -1
- package/dist/knowledge/reward-risk.js +9 -9
- package/dist/knowledge/reward-templates.js +2 -2
- package/dist/knowledge/safety-rules.d.ts +83 -1
- package/dist/knowledge/safety-rules.js +166 -2
- package/dist/knowledge/scenario-modes.d.ts +1 -1
- package/dist/knowledge/scenario-modes.js +13 -11
- package/dist/knowledge/service-confirm.d.ts +1 -1
- package/dist/knowledge/service-confirm.js +3 -3
- package/dist/knowledge/service-context.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-risk.d.ts +1 -1
- package/dist/knowledge/service-risk.js +3 -3
- package/dist/knowledge/service-templates.js +2 -2
- package/dist/knowledge/service-translation.d.ts +1 -1
- package/dist/knowledge/service-translation.js +7 -7
- package/dist/knowledge/template-registry.d.ts +48 -0
- package/dist/knowledge/template-registry.js +341 -0
- package/dist/knowledge/tool-constraints.js +6 -6
- package/dist/knowledge/tools-reference.js +11 -8
- package/dist/participation/merchant-interest.d.ts +32 -0
- package/dist/participation/merchant-interest.js +100 -0
- package/dist/participation/radar-core.d.ts +104 -0
- package/dist/participation/radar-core.js +269 -0
- package/dist/project/context-assembly.js +8 -0
- package/dist/project/deployment-bridge.js +6 -5
- package/dist/project/deployment-doc.js +5 -5
- package/dist/project/edit-planner.d.ts +123 -0
- package/dist/project/edit-planner.js +1342 -0
- package/dist/project/evaluation.d.ts +36 -0
- package/dist/project/evaluation.js +734 -68
- package/dist/project/game-theory.d.ts +43 -0
- package/dist/project/game-theory.js +177 -0
- package/dist/project/graph-builder.js +7 -1
- package/dist/project/handlers.d.ts +137 -2
- package/dist/project/handlers.js +423 -51
- package/dist/project/intent-analyzer.d.ts +71 -0
- package/dist/project/intent-analyzer.js +149 -0
- package/dist/project/machine-nodes.d.ts +2 -0
- package/dist/project/machine-nodes.js +36 -0
- package/dist/project/merchant-guide.d.ts +165 -0
- package/dist/project/merchant-guide.js +264 -0
- package/dist/project/mode-actions.d.ts +199 -0
- package/dist/project/mode-actions.js +309 -0
- package/dist/project/participation-radar.d.ts +18 -0
- package/dist/project/participation-radar.js +428 -0
- package/dist/project/pipeline-actions.d.ts +101 -0
- package/dist/project/pipeline-actions.js +109 -0
- package/dist/project/semantic-graph.d.ts +95 -0
- package/dist/project/semantic-graph.js +245 -0
- package/dist/project/stage-gate.js +4 -4
- package/dist/schema/call/allocation.d.ts +11 -11
- package/dist/schema/call/allocation.js +13 -3
- package/dist/schema/call/arbitration.d.ts +21 -21
- package/dist/schema/call/arbitration.js +30 -9
- package/dist/schema/call/base.d.ts +2 -2
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +127 -127
- package/dist/schema/call/bridge.js +12 -12
- package/dist/schema/call/contact.d.ts +3 -3
- package/dist/schema/call/contact.js +2 -2
- package/dist/schema/call/demand.d.ts +3 -3
- package/dist/schema/call/demand.js +2 -2
- package/dist/schema/call/guard.d.ts +11 -11
- package/dist/schema/call/guard.js +2 -2
- package/dist/schema/call/machine.d.ts +2072 -679
- package/dist/schema/call/machine.js +51 -5
- package/dist/schema/call/order.d.ts +7 -7
- package/dist/schema/call/order.js +3 -6
- package/dist/schema/call/payment.d.ts +3 -3
- package/dist/schema/call/permission.d.ts +3 -3
- package/dist/schema/call/permission.js +2 -2
- package/dist/schema/call/personal.d.ts +337 -3
- package/dist/schema/call/personal.js +10 -0
- package/dist/schema/call/progress.d.ts +177 -9
- package/dist/schema/call/progress.js +7 -3
- package/dist/schema/call/proof.d.ts +6 -6
- package/dist/schema/call/repository.d.ts +3 -3
- package/dist/schema/call/repository.js +2 -2
- package/dist/schema/call/reward.d.ts +57 -57
- package/dist/schema/call/reward.js +3 -3
- package/dist/schema/call/semantic.js +48 -2
- package/dist/schema/call/service.d.ts +285 -113
- package/dist/schema/call/service.js +92 -28
- package/dist/schema/call/treasury.d.ts +57 -57
- package/dist/schema/call/treasury.js +3 -3
- package/dist/schema/common/index.d.ts +2 -0
- package/dist/schema/common/index.js +46 -10
- package/dist/schema/local/index.js +5 -1
- package/dist/schema/messenger/index.js +4 -1
- package/dist/schema/operations.d.ts +1318 -317
- package/dist/schema/operations.js +76 -7
- package/dist/schema/project/index.d.ts +5662 -164
- package/dist/schema/project/index.js +1136 -5
- package/dist/schema/query/index.d.ts +580 -19
- package/dist/schema/query/index.js +88 -36
- package/dist/schema/schema-query/index.d.ts +59 -3
- package/dist/schema/schema-query/index.js +45 -6
- package/dist/schema/trust/index.d.ts +1012 -6
- package/dist/schema/trust/index.js +212 -11
- package/dist/schema/utils/node-parser.js +13 -0
- package/dist/schema/utils/object-type-utils.d.ts +12 -0
- package/dist/schema/utils/object-type-utils.js +35 -0
- package/dist/schema/utils/permission-machine-check.d.ts +49 -0
- package/dist/schema/utils/permission-machine-check.js +121 -0
- package/dist/schema/utils/skills-recommendation.d.ts +2 -0
- package/dist/schema/utils/skills-recommendation.js +77 -0
- package/dist/schema-query/index.d.ts +17 -1
- package/dist/schema-query/index.js +359 -3
- package/dist/schemas/account_operation.schema.json +1 -1
- package/dist/schemas/bridge_operation.schema.json +14 -7
- package/dist/schemas/guard2file.schema.json +2 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +2 -0
- package/dist/schemas/messenger_operation.schema.json +1 -1
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.output.json +2820 -0
- package/dist/schemas/onchain_operations.schema.json +255 -65
- package/dist/schemas/onchain_operations_allocation.schema.json +7 -6
- package/dist/schemas/onchain_operations_arbitration.schema.json +14 -10
- package/dist/schemas/onchain_operations_contact.schema.json +4 -3
- package/dist/schemas/onchain_operations_demand.schema.json +4 -3
- package/dist/schemas/onchain_operations_gen_passport.schema.json +4 -2
- package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -0
- package/dist/schemas/onchain_operations_guard.schema.json +579 -1
- package/dist/schemas/onchain_operations_machine.schema.json +5 -4
- package/dist/schemas/onchain_operations_order.schema.json +7 -6
- package/dist/schemas/onchain_operations_payment.schema.json +2 -1
- package/dist/schemas/onchain_operations_permission.schema.json +3 -2
- package/dist/schemas/onchain_operations_personal.schema.json +37 -0
- package/dist/schemas/onchain_operations_progress.schema.json +91 -4
- package/dist/schemas/onchain_operations_proof.schema.json +2 -1
- package/dist/schemas/onchain_operations_repository.schema.json +4 -3
- package/dist/schemas/onchain_operations_reward.schema.json +7 -6
- package/dist/schemas/onchain_operations_service.schema.json +80 -19
- package/dist/schemas/onchain_operations_treasury.schema.json +5 -4
- package/dist/schemas/onchain_table_data.output.json +1 -1
- package/dist/schemas/onchain_table_data.schema.json +10 -9
- package/dist/schemas/project_operation.output.json +3318 -57
- package/dist/schemas/project_operation.schema.json +728 -4
- package/dist/schemas/query_toolkit.output.json +16 -16
- package/dist/schemas/query_toolkit.schema.json +40 -3
- package/dist/schemas/schema_query.output.json +65 -2
- package/dist/schemas/schema_query.schema.json +31 -5
- package/dist/schemas/trust_score.output.json +392 -1
- package/dist/schemas/trust_score.schema.json +275 -1
- package/dist/schemas/wowok_buildin_info.output.json +81 -8
- package/dist/schemas/wowok_buildin_info.schema.json +46 -2
- package/dist/tools/handlers/onchain.js +636 -6
- package/dist/tools/handlers/project.js +71 -2
- package/dist/tools/handlers/query.js +117 -2
- package/dist/tools/handlers/schema-query.js +65 -1
- package/dist/tools/handlers/trust.js +192 -6
- package/dist/tools/index.d.ts +8 -0
- package/dist/tools/index.js +229 -15
- package/dist/tools/wrap.js +194 -15
- package/package.json +2 -2
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { WithPermissionObjectSchema, NamedObjectSchema, ObjectsSchema, CallEnvSchema, SubmissionCallSchema, } from './base.js';
|
|
3
3
|
import { MachineNodeSchema, MachineForwardSchema } from '../query/index.js';
|
|
4
|
-
import { ManyAccountOrMark_AddressSchema, NameOrAddressSchema, NameSchema, NotEmptyNameSchema, ReceivedObjectsOrRecentlySchema } from '../common/index.js';
|
|
4
|
+
import { ManyAccountOrMark_AddressSchema, NameOrAddressSchema, NameSchema, NotEmptyNameSchema, ReceivedObjectsOrRecentlySchema, RECEIVE_FORMAT_BLOCK_OBJECTS } from '../common/index.js';
|
|
5
|
+
function validateEntryForward(nodes) {
|
|
6
|
+
for (const node of nodes) {
|
|
7
|
+
if (!node.pairs)
|
|
8
|
+
continue;
|
|
9
|
+
for (const pair of node.pairs) {
|
|
10
|
+
if (pair.prev_node === "") {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
const ENTRY_FORWARD_ERROR_MESSAGE = "Machine has no entry forward. At least one node must have a pair with prev_node=\"\" (empty string), " +
|
|
18
|
+
"which defines how Progress advances from the initial state (current=\"\") to the first node. " +
|
|
19
|
+
"Without an entry forward, the workflow will be permanently stuck. " +
|
|
20
|
+
"Example: {name: 'Subscribed', pairs: [{prev_node: '', forwards: [{name: 'Subscribe', weight: 1}]}]}";
|
|
5
21
|
export const ProgressNamedOperatorSchema = z.object({
|
|
6
22
|
op: z.union([z.literal('add'), z.literal('set'), z.literal('remove')]),
|
|
7
23
|
name: NotEmptyNameSchema,
|
|
@@ -68,7 +84,17 @@ export const NodeSchema = z.discriminatedUnion('op', [
|
|
|
68
84
|
op: z.literal('remove forward'),
|
|
69
85
|
data: z.array(NodeRemoveForwardDataSchema).describe('List of operations to delete.'),
|
|
70
86
|
}).strict().describe('Delete operations.'),
|
|
71
|
-
])
|
|
87
|
+
])
|
|
88
|
+
.superRefine((data, ctx) => {
|
|
89
|
+
if ((data.op === 'add' || data.op === 'set') && data.bReplace === true) {
|
|
90
|
+
if (!validateEntryForward(data.nodes)) {
|
|
91
|
+
ctx.addIssue({
|
|
92
|
+
code: z.ZodIssueCode.custom,
|
|
93
|
+
message: ENTRY_FORWARD_ERROR_MESSAGE,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
});
|
|
72
98
|
export const NodeJsonOrMarkdownFileSchema = z.object({
|
|
73
99
|
json_or_markdown_file: z.string().describe(`Path to a JSON or Markdown file containing node array for COMPLETE REPLACEMENT of all nodes.
|
|
74
100
|
|
|
@@ -113,9 +139,29 @@ Supported formats: JSON array or Markdown with code blocks.
|
|
|
113
139
|
If parsing fails, error includes line number and column information.`),
|
|
114
140
|
pause: z.boolean().optional().describe('Whether to pause generating new Progress objects.'),
|
|
115
141
|
publish: z.boolean().optional().describe('Whether to publish the object. After the object is published, new Progress objects can be generated; and node settings will no longer be changeable.'),
|
|
116
|
-
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe('Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object.'),
|
|
142
|
+
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe('Unwrap CoinWrapper objects and other objects received by this Machine object and send them to the owner of its Permission object.' + RECEIVE_FORMAT_BLOCK_OBJECTS),
|
|
117
143
|
um: z.union([NameOrAddressSchema, z.null()]).optional().describe('Contact object ID or name.'),
|
|
118
|
-
}).strict()
|
|
144
|
+
}).strict()
|
|
145
|
+
.refine((data) => {
|
|
146
|
+
if (data.publish !== true)
|
|
147
|
+
return true;
|
|
148
|
+
if (!data.node)
|
|
149
|
+
return true;
|
|
150
|
+
if ('json_or_markdown_file' in data.node)
|
|
151
|
+
return true;
|
|
152
|
+
if ('nodes' in data.node && Array.isArray(data.node.nodes)) {
|
|
153
|
+
const isCreatingNew = typeof data.object === 'object' && data.object !== null;
|
|
154
|
+
const isReplace = data.node.bReplace === true;
|
|
155
|
+
if (isCreatingNew || isReplace) {
|
|
156
|
+
const nodes = data.node.nodes;
|
|
157
|
+
if (Array.isArray(nodes) && nodes.length > 0 && typeof nodes[0] === 'object') {
|
|
158
|
+
return validateEntryForward(nodes);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return true;
|
|
163
|
+
}, { message: ENTRY_FORWARD_ERROR_MESSAGE })
|
|
164
|
+
.describe("On-chain Machine operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, permission, ...} to create a Machine. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation.");
|
|
119
165
|
export const CallMachine_InputSchema = z.object({
|
|
120
166
|
data: CallMachine_DataSchema,
|
|
121
167
|
env: CallEnvSchema.optional(),
|
|
@@ -124,7 +170,7 @@ export const CallMachine_InputSchema = z.object({
|
|
|
124
170
|
export const MachineNode2File_InputSchema = z.object({
|
|
125
171
|
machine: NameOrAddressSchema.describe("Machine object ID or name to export"),
|
|
126
172
|
file_path: z.string().describe("Output file path (absolute or relative)"),
|
|
127
|
-
format: z.enum(["json", "markdown"]).optional().describe("Output format: 'json' (default) or 'markdown'"),
|
|
173
|
+
format: z.enum(["json", "markdown"]).optional().default("json").describe("Output format: 'json' (default) or 'markdown'"),
|
|
128
174
|
env: CallEnvSchema.optional(),
|
|
129
175
|
}).strict().describe("Query a Machine object from the blockchain and export its node definition to a JSON or Markdown file. The exported file can be edited and used to create new Machine objects.");
|
|
130
176
|
export const MachineNode2File_OutputSchema = z.discriminatedUnion("status", [
|
|
@@ -71,7 +71,7 @@ export declare const CallOrder_DataSchema: z.ZodObject<{
|
|
|
71
71
|
forward: string;
|
|
72
72
|
next_node_name: string;
|
|
73
73
|
}>;
|
|
74
|
-
op: z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]
|
|
74
|
+
op: z.ZodDefault<z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]>>;
|
|
75
75
|
message: z.ZodOptional<z.ZodString>;
|
|
76
76
|
}, "strict", z.ZodTypeAny, {
|
|
77
77
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
@@ -81,12 +81,12 @@ export declare const CallOrder_DataSchema: z.ZodObject<{
|
|
|
81
81
|
};
|
|
82
82
|
message?: string | undefined;
|
|
83
83
|
}, {
|
|
84
|
-
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
85
84
|
operation: {
|
|
86
85
|
forward: string;
|
|
87
86
|
next_node_name: string;
|
|
88
87
|
};
|
|
89
88
|
message?: string | undefined;
|
|
89
|
+
op?: "next" | "hold" | "unhold" | "adminUnhold" | undefined;
|
|
90
90
|
}>, {
|
|
91
91
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
92
92
|
operation: {
|
|
@@ -313,7 +313,7 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
|
|
|
313
313
|
forward: string;
|
|
314
314
|
next_node_name: string;
|
|
315
315
|
}>;
|
|
316
|
-
op: z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]
|
|
316
|
+
op: z.ZodDefault<z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]>>;
|
|
317
317
|
message: z.ZodOptional<z.ZodString>;
|
|
318
318
|
}, "strict", z.ZodTypeAny, {
|
|
319
319
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
@@ -323,12 +323,12 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
|
|
|
323
323
|
};
|
|
324
324
|
message?: string | undefined;
|
|
325
325
|
}, {
|
|
326
|
-
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
327
326
|
operation: {
|
|
328
327
|
forward: string;
|
|
329
328
|
next_node_name: string;
|
|
330
329
|
};
|
|
331
330
|
message?: string | undefined;
|
|
331
|
+
op?: "next" | "hold" | "unhold" | "adminUnhold" | undefined;
|
|
332
332
|
}>, {
|
|
333
333
|
op: "next" | "hold" | "unhold" | "adminUnhold";
|
|
334
334
|
operation: {
|
|
@@ -525,10 +525,11 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
|
|
|
525
525
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
526
526
|
project: z.ZodOptional<z.ZodString>;
|
|
527
527
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
528
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
528
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
529
529
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
530
530
|
}, "strict", z.ZodTypeAny, {
|
|
531
531
|
account: string;
|
|
532
|
+
schema_strict_mode: boolean;
|
|
532
533
|
no_cache?: boolean | undefined;
|
|
533
534
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
534
535
|
permission_guard?: string[] | undefined;
|
|
@@ -537,7 +538,6 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
|
|
|
537
538
|
user_intent_phrases?: string[] | undefined;
|
|
538
539
|
project?: string | undefined;
|
|
539
540
|
client_schema_version?: string | undefined;
|
|
540
|
-
schema_strict_mode?: boolean | undefined;
|
|
541
541
|
dry_run?: boolean | undefined;
|
|
542
542
|
}, {
|
|
543
543
|
no_cache?: boolean | undefined;
|
|
@@ -811,6 +811,7 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
|
|
|
811
811
|
} | undefined;
|
|
812
812
|
env?: {
|
|
813
813
|
account: string;
|
|
814
|
+
schema_strict_mode: boolean;
|
|
814
815
|
no_cache?: boolean | undefined;
|
|
815
816
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
816
817
|
permission_guard?: string[] | undefined;
|
|
@@ -819,7 +820,6 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
|
|
|
819
820
|
user_intent_phrases?: string[] | undefined;
|
|
820
821
|
project?: string | undefined;
|
|
821
822
|
client_schema_version?: string | undefined;
|
|
822
|
-
schema_strict_mode?: boolean | undefined;
|
|
823
823
|
dry_run?: boolean | undefined;
|
|
824
824
|
} | undefined;
|
|
825
825
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { CallEnvSchema, SubmissionCallSchema } from "./base.js";
|
|
3
3
|
import { OperateSchema } from "./progress.js";
|
|
4
|
-
import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, ManyAccountOrMark_AddressSchema, NameOrAddressSchema, ReceivedObjectsOrRecentlySchema } from "../common/index.js";
|
|
4
|
+
import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, ManyAccountOrMark_AddressSchema, NameOrAddressSchema, ReceivedObjectsOrRecentlySchema, RECEIVE_FORMAT_BLOCK_OBJECTS } from "../common/index.js";
|
|
5
5
|
export const ArbConfirmSchema = z.object({
|
|
6
6
|
arb: NameOrAddressSchema.describe("Arb object ID or name."),
|
|
7
7
|
confirm: z.boolean().describe("Whether to confirm that the submitted arbitration materials are valid for arbitration."),
|
|
@@ -24,11 +24,8 @@ export const CallOrder_DataSchema = z.object({
|
|
|
24
24
|
arb_objection: ArbObjectionSchema.optional().describe("Oppose and appeal the arbitration result, request re-arbitration."),
|
|
25
25
|
arb_claim_compensation: ArbClaimCompensationSchema.optional().describe("Specify the adjudicated Arb object to obtain order compensation."),
|
|
26
26
|
receive: ReceivedObjectsOrRecentlySchema.optional().describe("Unwrap CoinWrapper objects or other objects received by the order and transfer them to the order owner. " +
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"• ReceivedNormal[] (array) — explicit list of received objects: [{id, type, content_raw?}]\n" +
|
|
30
|
-
"• ReceivedBalance ({token_type, balance, received: [{id, balance, payment}]}) — received balance record\n" +
|
|
31
|
-
"DO NOT wrap in {result: ...} — pass directly (NOT {result: [...]})"),
|
|
27
|
+
"Consistent with `owner_receive` on other objects (arbitration/contact/demand/machine/permission/repository/reward/service/treasury)." +
|
|
28
|
+
RECEIVE_FORMAT_BLOCK_OBJECTS),
|
|
32
29
|
transfer_to: AccountOrMark_AddressSchema.optional().describe("Set new owner of the order. Requires order owner permission to set."),
|
|
33
30
|
}).strict().describe("On-chain, operate on an Order object.");
|
|
34
31
|
export const CallOrder_InputSchema = z.object({
|
|
@@ -491,10 +491,11 @@ export declare const CallPayment_InputSchema: z.ZodObject<{
|
|
|
491
491
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
492
492
|
project: z.ZodOptional<z.ZodString>;
|
|
493
493
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
494
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
494
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
495
495
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
496
496
|
}, "strict", z.ZodTypeAny, {
|
|
497
497
|
account: string;
|
|
498
|
+
schema_strict_mode: boolean;
|
|
498
499
|
no_cache?: boolean | undefined;
|
|
499
500
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
500
501
|
permission_guard?: string[] | undefined;
|
|
@@ -503,7 +504,6 @@ export declare const CallPayment_InputSchema: z.ZodObject<{
|
|
|
503
504
|
user_intent_phrases?: string[] | undefined;
|
|
504
505
|
project?: string | undefined;
|
|
505
506
|
client_schema_version?: string | undefined;
|
|
506
|
-
schema_strict_mode?: boolean | undefined;
|
|
507
507
|
dry_run?: boolean | undefined;
|
|
508
508
|
}, {
|
|
509
509
|
no_cache?: boolean | undefined;
|
|
@@ -551,6 +551,7 @@ export declare const CallPayment_InputSchema: z.ZodObject<{
|
|
|
551
551
|
};
|
|
552
552
|
env?: {
|
|
553
553
|
account: string;
|
|
554
|
+
schema_strict_mode: boolean;
|
|
554
555
|
no_cache?: boolean | undefined;
|
|
555
556
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
556
557
|
permission_guard?: string[] | undefined;
|
|
@@ -559,7 +560,6 @@ export declare const CallPayment_InputSchema: z.ZodObject<{
|
|
|
559
560
|
user_intent_phrases?: string[] | undefined;
|
|
560
561
|
project?: string | undefined;
|
|
561
562
|
client_schema_version?: string | undefined;
|
|
562
|
-
schema_strict_mode?: boolean | undefined;
|
|
563
563
|
dry_run?: boolean | undefined;
|
|
564
564
|
} | undefined;
|
|
565
565
|
}, {
|
|
@@ -2468,10 +2468,11 @@ export declare const CallPermission_InputSchema: z.ZodObject<{
|
|
|
2468
2468
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2469
2469
|
project: z.ZodOptional<z.ZodString>;
|
|
2470
2470
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
2471
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
2471
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2472
2472
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
2473
2473
|
}, "strict", z.ZodTypeAny, {
|
|
2474
2474
|
account: string;
|
|
2475
|
+
schema_strict_mode: boolean;
|
|
2475
2476
|
no_cache?: boolean | undefined;
|
|
2476
2477
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
2477
2478
|
permission_guard?: string[] | undefined;
|
|
@@ -2480,7 +2481,6 @@ export declare const CallPermission_InputSchema: z.ZodObject<{
|
|
|
2480
2481
|
user_intent_phrases?: string[] | undefined;
|
|
2481
2482
|
project?: string | undefined;
|
|
2482
2483
|
client_schema_version?: string | undefined;
|
|
2483
|
-
schema_strict_mode?: boolean | undefined;
|
|
2484
2484
|
dry_run?: boolean | undefined;
|
|
2485
2485
|
}, {
|
|
2486
2486
|
no_cache?: boolean | undefined;
|
|
@@ -2842,6 +2842,7 @@ export declare const CallPermission_InputSchema: z.ZodObject<{
|
|
|
2842
2842
|
} | undefined;
|
|
2843
2843
|
env?: {
|
|
2844
2844
|
account: string;
|
|
2845
|
+
schema_strict_mode: boolean;
|
|
2845
2846
|
no_cache?: boolean | undefined;
|
|
2846
2847
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
2847
2848
|
permission_guard?: string[] | undefined;
|
|
@@ -2850,7 +2851,6 @@ export declare const CallPermission_InputSchema: z.ZodObject<{
|
|
|
2850
2851
|
user_intent_phrases?: string[] | undefined;
|
|
2851
2852
|
project?: string | undefined;
|
|
2852
2853
|
client_schema_version?: string | undefined;
|
|
2853
|
-
schema_strict_mode?: boolean | undefined;
|
|
2854
2854
|
dry_run?: boolean | undefined;
|
|
2855
2855
|
} | undefined;
|
|
2856
2856
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { PermissionIndexTypeSchema } from "../query/index.js";
|
|
3
3
|
import { CallEnvSchema, SubmissionCallSchema, NormalObjectSchema } from "./base.js";
|
|
4
|
-
import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, ManyAccountOrMark_AddressSchema, NameOrAddressSchema, ReceivedObjectsOrRecentlySchema } from "../common/index.js";
|
|
4
|
+
import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, ManyAccountOrMark_AddressSchema, NameOrAddressSchema, ReceivedObjectsOrRecentlySchema, RECEIVE_FORMAT_BLOCK_OBJECTS } from "../common/index.js";
|
|
5
5
|
export const RemarkSetSchema = z.object({
|
|
6
6
|
op: z.literal("set"),
|
|
7
7
|
index: PermissionIndexTypeSchema,
|
|
@@ -95,7 +95,7 @@ export const CallPermission_DataSchema = z.object({
|
|
|
95
95
|
admin: AdminSchema.optional().describe("Manage Permission object admins: add new admins, remove existing admins, or set the complete admin list. Only the Permission object owner (builder) can perform this operation. The creator automatically becomes an admin with full permissions."),
|
|
96
96
|
apply: z.array(NameOrAddressSchema).optional().describe("Array of object IDs or names to operate on, apply the Permission object to these objects' permission control. Note: The signer must be the owner of the existing Permission objects for these objects"),
|
|
97
97
|
builder: AccountOrMark_AddressSchema.optional().describe("Set or transfer ownership of the Permission object to the specified user ID. The creator automatically becomes the builder; only the builder can transfer ownership to other users."),
|
|
98
|
-
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe('Unwrap CoinWrapper objects and other objects received by this object and send them to the builder(owner).'),
|
|
98
|
+
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe('Unwrap CoinWrapper objects and other objects received by this Permission object and send them to the builder(owner).' + RECEIVE_FORMAT_BLOCK_OBJECTS),
|
|
99
99
|
um: z.union([NameOrAddressSchema, z.null()]).optional().describe("Contact object ID or name."),
|
|
100
100
|
}).strict().describe("On-chain Permission operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, tags?, ...} to create a Permission. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation.");
|
|
101
101
|
export const CallPermission_InputSchema = z.object({
|