@wowok/agent-mcp 2.7.2 → 2.7.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/config/runtime.js +1 -1
- package/dist/customer/account-events.d.ts +32 -0
- package/dist/customer/account-events.js +1 -0
- package/dist/customer/customer-advice.d.ts +1 -0
- package/dist/customer/customer-advice.js +1 -1
- package/dist/customer/info-puzzle.js +1 -1
- package/dist/customer/order-strategy.d.ts +1 -1
- package/dist/customer/reminder-system.d.ts +2 -0
- package/dist/customer/reminder-system.js +1 -1
- package/dist/customer/risk-assessment.d.ts +1 -0
- package/dist/customer/risk-assessment.js +1 -1
- package/dist/customer/types.d.ts +2 -0
- package/dist/evaluation/builtins/arbitration-score.d.ts +41 -0
- package/dist/evaluation/builtins/arbitration-score.js +1 -0
- package/dist/evaluation/builtins/index.d.ts +1 -0
- package/dist/evaluation/builtins/index.js +1 -1
- package/dist/evaluation/category-match-rules.d.ts +30 -0
- package/dist/evaluation/category-match-rules.js +1 -0
- package/dist/evaluation/engine.js +1 -1
- package/dist/evaluation/extract.js +1 -1
- package/dist/evaluation/index.d.ts +1 -0
- package/dist/evaluation/index.js +1 -1
- package/dist/evaluation/location-match.d.ts +42 -0
- package/dist/evaluation/location-match.js +1 -0
- package/dist/evaluation/path-reasoning.d.ts +35 -0
- package/dist/evaluation/path-reasoning.js +1 -0
- package/dist/evaluation/region.d.ts +6 -0
- package/dist/evaluation/region.js +1 -1
- package/dist/evaluation/types.d.ts +17 -0
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/experience/user-profile.d.ts +1 -1
- package/dist/extensions/index.d.ts +6 -0
- package/dist/extensions/index.js +1 -1
- package/dist/extensions/industry-layers.d.ts +75 -0
- package/dist/extensions/industry-layers.js +1 -0
- package/dist/extensions/industry-pack.d.ts +105 -0
- package/dist/extensions/industry-pack.js +1 -0
- package/dist/extensions/metric-registry.js +1 -1
- package/dist/extensions/mode-evaluator.d.ts +1 -1
- package/dist/extensions/registry.d.ts +1 -0
- package/dist/extensions/registry.js +1 -1
- package/dist/graph/base.d.ts +8 -0
- package/dist/graph/base.js +1 -0
- package/dist/harness/index.d.ts +1 -0
- package/dist/harness/index.js +1 -1
- package/dist/harness/plan.d.ts +2 -0
- package/dist/harness/plan.js +1 -1
- package/dist/harness/recover.d.ts +1 -1
- package/dist/harness/types.d.ts +2 -3
- package/dist/index.js +1 -1
- package/dist/knowledge/allocation-confirm.js +1 -1
- package/dist/knowledge/anti-cheat.d.ts +37 -0
- package/dist/knowledge/anti-cheat.js +1 -0
- package/dist/knowledge/arb-confirm.d.ts +28 -0
- package/dist/knowledge/arb-confirm.js +1 -0
- package/dist/knowledge/arb-translation.d.ts +48 -0
- package/dist/knowledge/arb-translation.js +1 -0
- package/dist/knowledge/arbitration-context.js +1 -1
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/bridge-confirm.d.ts +26 -0
- package/dist/knowledge/bridge-confirm.js +1 -0
- package/dist/knowledge/bridge-translation.d.ts +37 -0
- package/dist/knowledge/bridge-translation.js +1 -0
- package/dist/knowledge/contact-confirm.d.ts +27 -0
- package/dist/knowledge/contact-confirm.js +1 -0
- package/dist/knowledge/contact-translation.d.ts +39 -0
- package/dist/knowledge/contact-translation.js +1 -0
- package/dist/knowledge/demand-confirm.js +1 -1
- package/dist/knowledge/demand-context.d.ts +17 -0
- package/dist/knowledge/demand-context.js +1 -0
- package/dist/knowledge/demand-ledger.d.ts +26 -0
- package/dist/knowledge/demand-ledger.js +1 -0
- package/dist/knowledge/demand-puzzle.d.ts +29 -0
- package/dist/knowledge/demand-puzzle.js +1 -0
- package/dist/knowledge/demand-risk.js +1 -1
- package/dist/knowledge/demand-templates.d.ts +12 -0
- package/dist/knowledge/demand-templates.js +1 -0
- package/dist/knowledge/demand-translation.js +1 -1
- package/dist/knowledge/deployment-scanner.js +1 -1
- package/dist/knowledge/evidence-review.d.ts +12 -0
- package/dist/knowledge/evidence-review.js +1 -0
- package/dist/knowledge/examples-scanner-cli.js +1 -1
- package/dist/knowledge/examples-scanner.js +1 -1
- package/dist/knowledge/flywheel-loop.d.ts +0 -1
- package/dist/knowledge/flywheel-loop.js +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-migration.d.ts +1 -1
- package/dist/knowledge/index.d.ts +71 -3
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/machine-render.js +1 -1
- package/dist/knowledge/market-metrics.d.ts +12 -0
- package/dist/knowledge/market-metrics.js +1 -0
- package/dist/knowledge/market-operations.d.ts +46 -0
- package/dist/knowledge/market-operations.js +1 -0
- package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
- package/dist/knowledge/mcp-schema-audit.d.ts +22 -22
- package/dist/knowledge/mcp-schema-audit.js +1 -1
- package/dist/knowledge/onchain-constants.d.ts +2 -2
- package/dist/knowledge/onchain-constants.js +1 -1
- package/dist/knowledge/payment-confirm.d.ts +26 -0
- package/dist/knowledge/payment-confirm.js +1 -0
- package/dist/knowledge/payment-risk.js +1 -1
- package/dist/knowledge/payment-translation.d.ts +37 -0
- package/dist/knowledge/payment-translation.js +1 -0
- package/dist/knowledge/permission-context.d.ts +11 -0
- package/dist/knowledge/permission-context.js +1 -1
- package/dist/knowledge/permission-ledger.d.ts +11 -0
- package/dist/knowledge/permission-ledger.js +1 -1
- package/dist/knowledge/personal-confirm.d.ts +29 -0
- package/dist/knowledge/personal-confirm.js +1 -0
- package/dist/knowledge/personal-risk.js +1 -1
- package/dist/knowledge/personal-translation.d.ts +37 -0
- package/dist/knowledge/personal-translation.js +1 -0
- package/dist/knowledge/process-model.d.ts +1 -11
- package/dist/knowledge/process-model.js +1 -1
- package/dist/knowledge/progress-ledger.js +1 -1
- package/dist/knowledge/progress-risk.js +1 -1
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/progress-translation.js +1 -1
- package/dist/knowledge/proof-context.d.ts +17 -0
- package/dist/knowledge/proof-context.js +1 -0
- package/dist/knowledge/proof-ledger.d.ts +34 -0
- package/dist/knowledge/proof-ledger.js +1 -0
- package/dist/knowledge/proof-puzzle.d.ts +35 -0
- package/dist/knowledge/proof-puzzle.js +1 -0
- package/dist/knowledge/proof-templates.d.ts +22 -0
- package/dist/knowledge/proof-templates.js +1 -0
- package/dist/knowledge/registrar-confirm.d.ts +26 -0
- package/dist/knowledge/registrar-confirm.js +1 -0
- package/dist/knowledge/registrar-risk.js +1 -1
- package/dist/knowledge/registrar-translation.d.ts +37 -0
- package/dist/knowledge/registrar-translation.js +1 -0
- package/dist/knowledge/repository-context.d.ts +12 -0
- package/dist/knowledge/repository-context.js +1 -0
- package/dist/knowledge/repository-ledger.d.ts +25 -0
- package/dist/knowledge/repository-ledger.js +1 -0
- package/dist/knowledge/repository-puzzle.d.ts +30 -0
- package/dist/knowledge/repository-puzzle.js +1 -0
- package/dist/knowledge/repository-templates.d.ts +14 -0
- package/dist/knowledge/repository-templates.js +1 -0
- package/dist/knowledge/resource-confirm.d.ts +25 -0
- package/dist/knowledge/resource-confirm.js +1 -0
- package/dist/knowledge/resource-translation.d.ts +37 -0
- package/dist/knowledge/resource-translation.js +1 -0
- package/dist/knowledge/reward-context.d.ts +2 -2
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-translation.js +1 -1
- package/dist/knowledge/safety-rules.d.ts +1 -0
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/service-risk.d.ts +1 -1
- package/dist/knowledge/service-risk.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/treasury-context.d.ts +1 -1
- package/dist/knowledge/treasury-context.js +1 -1
- package/dist/knowledge/treasury-ledger.js +1 -1
- package/dist/knowledge/treasury-risk.js +1 -1
- package/dist/knowledge/universal-template.d.ts +22 -0
- package/dist/knowledge/universal-template.js +1 -0
- package/dist/knowledge/util-confirm.d.ts +24 -0
- package/dist/knowledge/util-confirm.js +1 -0
- package/dist/knowledge/util-risk.js +1 -1
- package/dist/knowledge/util-translation.d.ts +39 -0
- package/dist/knowledge/util-translation.js +1 -0
- package/dist/knowledge/workflow-guidance.d.ts +180 -0
- package/dist/knowledge/workflow-guidance.js +1 -0
- package/dist/participation/employee-kpi.d.ts +25 -0
- package/dist/participation/employee-kpi.js +1 -0
- package/dist/participation/employee-store.d.ts +16 -0
- package/dist/participation/employee-store.js +1 -0
- package/dist/participation/index.d.ts +2 -0
- package/dist/participation/index.js +1 -0
- package/dist/persona/defaults.js +1 -1
- package/dist/persona/index.d.ts +9 -2
- package/dist/persona/index.js +1 -1
- package/dist/persona/local-region.d.ts +20 -0
- package/dist/persona/local-region.js +1 -0
- package/dist/persona/model.js +1 -1
- package/dist/persona/overrides.d.ts +10 -0
- package/dist/persona/overrides.js +1 -0
- package/dist/persona/pack-personae.d.ts +11 -0
- package/dist/persona/pack-personae.js +1 -0
- package/dist/persona/strategy-intent.d.ts +20 -0
- package/dist/persona/strategy-intent.js +1 -0
- package/dist/persona/types.d.ts +3 -1
- package/dist/project/business-puzzle.d.ts +1 -1
- package/dist/project/business-puzzle.js +1 -1
- package/dist/project/deployment-doc.js +1 -1
- package/dist/project/edit-planner.js +1 -1
- package/dist/project/evaluation.d.ts +37 -1
- package/dist/project/evaluation.js +1 -1
- package/dist/project/graph-builder.d.ts +2 -2
- package/dist/project/graph-builder.js +1 -1
- package/dist/project/graph.d.ts +3 -6
- package/dist/project/handlers.d.ts +33 -2
- package/dist/project/handlers.js +1 -1
- package/dist/project/index.d.ts +1 -0
- package/dist/project/index.js +1 -1
- package/dist/project/merchant-guide.d.ts +19 -0
- package/dist/project/merchant-guide.js +1 -1
- package/dist/project/mode-actions.js +1 -1
- package/dist/project/rollback-policy.js +1 -1
- package/dist/project/semantic-assembler.d.ts +2 -2
- package/dist/project/semantic-assembler.js +1 -1
- package/dist/project/semantic-graph.d.ts +3 -5
- package/dist/project/workflow-design-assessment.d.ts +24 -0
- package/dist/project/workflow-design-assessment.js +1 -0
- package/dist/safety/confirm-gate.d.ts +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/allocation.d.ts +186 -1385
- package/dist/schema/call/arbitration.d.ts +272 -1871
- package/dist/schema/call/base.d.ts +1831 -9076
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +911 -3171
- package/dist/schema/call/contact.d.ts +135 -931
- package/dist/schema/call/demand.d.ts +164 -1194
- package/dist/schema/call/guard.d.ts +298 -1140
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +459 -5403
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.d.ts +137 -844
- package/dist/schema/call/payment.d.ts +74 -561
- package/dist/schema/call/permission.d.ts +335 -2791
- package/dist/schema/call/personal.d.ts +227 -1814
- package/dist/schema/call/progress.d.ts +140 -843
- package/dist/schema/call/proof.d.ts +42 -258
- package/dist/schema/call/repository.d.ts +324 -2222
- package/dist/schema/call/reward.d.ts +153 -1183
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +376 -3431
- package/dist/schema/call/treasury.d.ts +252 -2158
- package/dist/schema/common/index.d.ts +222 -697
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/config/index.d.ts +18 -161
- package/dist/schema/employee/index.d.ts +99 -0
- package/dist/schema/employee/index.js +1 -0
- package/dist/schema/evaluation/index.d.ts +1035 -3918
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/index.d.ts +5 -0
- package/dist/schema/index.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +132 -0
- package/dist/schema/industry-pack/index.js +1 -0
- package/dist/schema/intent-radar/index.d.ts +92 -245
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/local/index.d.ts +2045 -18080
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/local/wip.d.ts +61 -651
- package/dist/schema/local/wip.js +1 -1
- package/dist/schema/messenger/index.d.ts +949 -5557
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +3168 -26468
- package/dist/schema/operations.js +1 -1
- package/dist/schema/permission/index.d.ts +121 -0
- package/dist/schema/permission/index.js +1 -0
- package/dist/schema/persona/index.d.ts +469 -1820
- package/dist/schema/persona/index.js +1 -1
- package/dist/schema/project/index.d.ts +1023 -8450
- package/dist/schema/project/index.js +1 -1
- package/dist/schema/query/index.d.ts +12121 -75556
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-query/index.d.ts +35 -98
- package/dist/schema/schema-query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/task-status.d.ts +26 -132
- package/dist/schema/trust/index.d.ts +194 -1290
- package/dist/schema/utils/guard-parser.js +1 -1
- package/dist/schema/utils/node-parser.js +1 -1
- package/dist/schema/utils/skills-recommendation.d.ts +1 -0
- package/dist/schema/utils/skills-recommendation.js +1 -1
- package/dist/schema/workflow/index.d.ts +161 -0
- package/dist/schema/workflow/index.js +1 -0
- package/dist/schema/workspace/index.d.ts +69 -0
- package/dist/schema/workspace/index.js +1 -0
- package/dist/{schema-query → schema-query-impl}/index.js +1 -1
- package/dist/schemas/account_operation.output.json +3147 -1655
- package/dist/schemas/account_operation.schema.json +225 -218
- package/dist/schemas/bridge_operation.output.json +1168 -653
- package/dist/schemas/bridge_operation.schema.json +736 -504
- package/dist/schemas/config_operation.output.json +185 -179
- package/dist/schemas/config_operation.schema.json +21 -26
- package/dist/schemas/employee_operation.output.json +207 -0
- package/dist/schemas/employee_operation.schema.json +176 -0
- package/dist/schemas/evaluation_operation.output.json +2268 -601
- package/dist/schemas/evaluation_operation.schema.json +2919 -787
- package/dist/schemas/guard2file.output.json +58 -64
- package/dist/schemas/guard2file.schema.json +79 -81
- package/dist/schemas/index.json +41 -11
- package/dist/schemas/industry_pack_operation.output.json +594 -0
- package/dist/schemas/industry_pack_operation.schema.json +55 -0
- package/dist/schemas/intent_radar.output.json +275 -203
- package/dist/schemas/intent_radar.schema.json +124 -126
- package/dist/schemas/local_info_operation.output.json +1174 -660
- package/dist/schemas/local_info_operation.schema.json +119 -125
- package/dist/schemas/local_mark_operation.output.json +1239 -692
- package/dist/schemas/local_mark_operation.schema.json +91 -96
- package/dist/schemas/machineNode2file.output.json +63 -69
- package/dist/schemas/machineNode2file.schema.json +79 -81
- package/dist/schemas/messenger_operation.output.json +2722 -1531
- package/dist/schemas/messenger_operation.schema.json +1482 -1264
- package/dist/schemas/onchain_events.output.json +2590 -978
- package/dist/schemas/onchain_events.schema.json +117 -99
- package/dist/schemas/onchain_operations.output.json +3957 -2312
- package/dist/schemas/onchain_operations.schema.json +20799 -9285
- package/dist/schemas/onchain_operations_allocation.schema.json +171 -107
- package/dist/schemas/onchain_operations_arbitration.schema.json +233 -146
- package/dist/schemas/onchain_operations_contact.schema.json +129 -90
- package/dist/schemas/onchain_operations_demand.schema.json +170 -112
- package/dist/schemas/onchain_operations_gen_passport.schema.json +61 -646
- package/dist/schemas/onchain_operations_gen_proof.schema.json +40 -172
- package/dist/schemas/onchain_operations_guard.schema.json +3765 -294
- package/dist/schemas/onchain_operations_machine.schema.json +536 -163
- package/dist/schemas/onchain_operations_order.schema.json +126 -96
- package/dist/schemas/onchain_operations_payment.schema.json +82 -67
- package/dist/schemas/onchain_operations_permission.schema.json +331 -93
- package/dist/schemas/onchain_operations_personal.schema.json +636 -96
- package/dist/schemas/onchain_operations_progress.schema.json +125 -92
- package/dist/schemas/onchain_operations_proof.schema.json +76 -69
- package/dist/schemas/onchain_operations_repository.schema.json +636 -249
- package/dist/schemas/onchain_operations_reward.schema.json +218 -108
- package/dist/schemas/onchain_operations_service.schema.json +678 -220
- package/dist/schemas/onchain_operations_treasury.schema.json +401 -135
- package/dist/schemas/onchain_table_data.output.json +6833 -2432
- package/dist/schemas/onchain_table_data.schema.json +684 -417
- package/dist/schemas/permission_operation.output.json +173 -0
- package/dist/schemas/permission_operation.schema.json +39 -0
- package/dist/schemas/persona_operation.output.json +1568 -268
- package/dist/schemas/persona_operation.schema.json +346 -205
- package/dist/schemas/project_operation.output.json +6922 -5132
- package/dist/schemas/project_operation.schema.json +1050 -1020
- package/dist/schemas/query_task_status.output.json +195 -99
- package/dist/schemas/query_task_status.schema.json +12 -18
- package/dist/schemas/query_toolkit.output.json +18862 -14561
- package/dist/schemas/query_toolkit.schema.json +614 -522
- package/dist/schemas/schema_query.output.json +127 -129
- package/dist/schemas/schema_query.schema.json +64 -69
- package/dist/schemas/trust_score.output.json +678 -587
- package/dist/schemas/trust_score.schema.json +289 -277
- package/dist/schemas/wip_file.output.json +116 -124
- package/dist/schemas/wip_file.schema.json +142 -143
- package/dist/schemas/workflow_operation.output.json +164 -0
- package/dist/schemas/workflow_operation.schema.json +116 -0
- package/dist/schemas/workspace_operation.output.json +277 -0
- package/dist/schemas/workspace_operation.schema.json +45 -0
- package/dist/schemas/wowok_buildin_info.output.json +1682 -844
- package/dist/schemas/wowok_buildin_info.schema.json +576 -526
- package/dist/tools/handlers/bridge.d.ts +8 -1
- package/dist/tools/handlers/bridge.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/employee.d.ts +2 -0
- package/dist/tools/handlers/employee.js +1 -0
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/file-export.js +1 -1
- package/dist/tools/handlers/industry-pack.d.ts +2 -0
- package/dist/tools/handlers/industry-pack.js +1 -0
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/permission.d.ts +2 -0
- package/dist/tools/handlers/permission.js +1 -0
- package/dist/tools/handlers/persona.js +1 -1
- package/dist/tools/handlers/project.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/handlers/trust.js +1 -1
- package/dist/tools/handlers/wip.js +1 -1
- package/dist/tools/handlers/workflow.d.ts +2 -0
- package/dist/tools/handlers/workflow.js +1 -0
- package/dist/tools/handlers/workspace.d.ts +4 -0
- package/dist/tools/handlers/workspace.js +1 -0
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/rules-hook.d.ts +1 -1
- package/dist/tools/rules-hook.js +1 -1
- package/dist/tools/shared.d.ts +1 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/types.d.ts +2 -1
- package/package.json +4 -5
- package/dist/knowledge/arbitration-trust.d.ts +0 -24
- package/dist/knowledge/arbitration-trust.js +0 -1
- package/dist/schema/call/bridge-handler.d.ts +0 -8
- package/dist/schema/call/bridge-handler.js +0 -1
- package/dist/schema/sync-layer4.d.ts +0 -21
- package/dist/schema/sync-layer4.js +0 -1
- /package/dist/{schema-query → schema-query-impl}/index.d.ts +0 -0
|
@@ -2,28 +2,29 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$id": "https://wowok.net/schemas/onchain_operations_gen_passport.json",
|
|
4
4
|
"title": "Gen_passport Operation",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "🛂 Generate Verified Passport Object: Create immutable verified credentials after Guard validation passes. Supports verifying multiple guards at once.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"operation_type": {
|
|
9
|
+
"type": "string",
|
|
9
10
|
"const": "gen_passport"
|
|
10
11
|
},
|
|
11
12
|
"guard": {
|
|
12
13
|
"anyOf": [
|
|
13
14
|
{
|
|
14
|
-
"type": "string"
|
|
15
|
-
"description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters)."
|
|
15
|
+
"type": "string"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"type": "array",
|
|
19
19
|
"items": {
|
|
20
|
-
"
|
|
20
|
+
"type": "string"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
24
|
"description": "Guard object ID(s) to verify and generate passport from. Can be a single guard (string) or multiple guards (array of strings). Supports guard names or addresses."
|
|
25
25
|
},
|
|
26
26
|
"info": {
|
|
27
|
+
"description": "Optional submission data. If not provided, will attempt to get existing submissions from the guard.",
|
|
27
28
|
"type": "object",
|
|
28
29
|
"properties": {
|
|
29
30
|
"type": {
|
|
@@ -32,12 +33,13 @@
|
|
|
32
33
|
"description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
|
|
33
34
|
},
|
|
34
35
|
"guard": {
|
|
36
|
+
"maxItems": 20,
|
|
35
37
|
"type": "array",
|
|
36
38
|
"items": {
|
|
37
39
|
"type": "object",
|
|
38
40
|
"properties": {
|
|
39
41
|
"object": {
|
|
40
|
-
"
|
|
42
|
+
"type": "string",
|
|
41
43
|
"description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
|
|
42
44
|
},
|
|
43
45
|
"impack": {
|
|
@@ -51,7 +53,6 @@
|
|
|
51
53
|
],
|
|
52
54
|
"additionalProperties": false
|
|
53
55
|
},
|
|
54
|
-
"maxItems": 20,
|
|
55
56
|
"description": "Array of Guard objects to verify. Constraint: at most 20 entries (MAX_GUARD_COUNT_PASSPORT). Relation: each entry corresponds to a Guard bound to the operation."
|
|
56
57
|
},
|
|
57
58
|
"submission": {
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"type": "object",
|
|
61
62
|
"properties": {
|
|
62
63
|
"guard": {
|
|
63
|
-
"
|
|
64
|
+
"type": "string",
|
|
64
65
|
"description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
|
|
65
66
|
},
|
|
66
67
|
"submission": {
|
|
@@ -369,6 +370,7 @@
|
|
|
369
370
|
"description": "Type of the value stored in `value`. One of: Bool(0), Address(1), String(2), U8(3), U16(4), U32(5), U64(6), U128(7), U256(8), VecBool(9), VecAddress(10), VecString(11), VecU8(12), VecU16(13), VecU32(14), VecU64(15), VecU128(16), VecU256(17), VecVecU8(18). When value_type=Address (1), the `value` field accepts a hex address string, a LocalMark name, or an AccountOrMark_Address object — see `value` field description for details."
|
|
370
371
|
},
|
|
371
372
|
"value": {
|
|
373
|
+
"description": "The actual value data. Format depends on `value_type`:\n• Bool: true/false (boolean)\n• Address (CRITICAL — string 'Address' is NOT a placeholder): a hex address (e.g. '0x1234...'), a LocalMark name (e.g. 'my-service' — resolved to address at evaluation time), an AccountOrMark_Address object (e.g. {name_or_address:'my-service'}), or system shorthand ('0xaaa' = EntityLinker, '0xaab' = EntityRegistrar). The literal string 'Address' itself is INVALID — it would be treated as a non-existent LocalMark name and fail. Example: value='0x2::wow::WOW<address>' or value='my-permission'.\n• String: any string\n• U8/U16/U32/U64/U128/U256: number or numeric string (e.g. 42 or '42')\n• Vec* types: arrays of the corresponding element type\nREQUIRED when b_submission=false. OPTIONAL when b_submission=true (value is supplied at evaluation time by user submission).",
|
|
372
374
|
"anyOf": [
|
|
373
375
|
{
|
|
374
376
|
"type": "boolean"
|
|
@@ -379,12 +381,12 @@
|
|
|
379
381
|
"type": "object",
|
|
380
382
|
"properties": {
|
|
381
383
|
"name_or_address": {
|
|
382
|
-
"
|
|
384
|
+
"type": "string",
|
|
383
385
|
"description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters)."
|
|
384
386
|
},
|
|
385
387
|
"local_mark_first": {
|
|
386
|
-
"
|
|
387
|
-
"
|
|
388
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks",
|
|
389
|
+
"type": "boolean"
|
|
388
390
|
}
|
|
389
391
|
},
|
|
390
392
|
"additionalProperties": false,
|
|
@@ -415,12 +417,24 @@
|
|
|
415
417
|
"entities": {
|
|
416
418
|
"type": "array",
|
|
417
419
|
"items": {
|
|
418
|
-
"
|
|
420
|
+
"type": "object",
|
|
421
|
+
"properties": {
|
|
422
|
+
"name_or_address": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters)."
|
|
425
|
+
},
|
|
426
|
+
"local_mark_first": {
|
|
427
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks",
|
|
428
|
+
"type": "boolean"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"additionalProperties": false,
|
|
432
|
+
"description": "Account or address lookup object. Use this to specify which account to use for an operation. EXAMPLE: { name_or_address: 'testor2' } - looks up account by name; EXAMPLE: { name_or_address: '0x1234...' } - uses address directly; If name_or_address is empty string '', uses the default local account."
|
|
419
433
|
}
|
|
420
434
|
},
|
|
421
435
|
"check_all_founded": {
|
|
422
|
-
"
|
|
423
|
-
"
|
|
436
|
+
"description": "Whether to check all entities are found, if true, all entities must be found (abort and throw exception if any ID not found); if false, only return found IDs",
|
|
437
|
+
"type": "boolean"
|
|
424
438
|
}
|
|
425
439
|
},
|
|
426
440
|
"required": [
|
|
@@ -458,15 +472,15 @@
|
|
|
458
472
|
}
|
|
459
473
|
}
|
|
460
474
|
}
|
|
461
|
-
]
|
|
462
|
-
"description": "The actual value data. Format depends on `value_type`:\n• Bool: true/false (boolean)\n• Address (CRITICAL — string 'Address' is NOT a placeholder): a hex address (e.g. '0x1234...'), a LocalMark name (e.g. 'my-service' — resolved to address at evaluation time), an AccountOrMark_Address object (e.g. {name_or_address:'my-service'}), or system shorthand ('0xaaa' = EntityLinker, '0xaab' = EntityRegistrar). The literal string 'Address' itself is INVALID — it would be treated as a non-existent LocalMark name and fail. Example: value='0x2::wow::WOW<address>' or value='my-permission'.\n• String: any string\n• U8/U16/U32/U64/U128/U256: number or numeric string (e.g. 42 or '42')\n• Vec* types: arrays of the corresponding element type\nREQUIRED when b_submission=false. OPTIONAL when b_submission=true (value is supplied at evaluation time by user submission)."
|
|
475
|
+
]
|
|
463
476
|
},
|
|
464
477
|
"name": {
|
|
465
|
-
"type": "string",
|
|
466
478
|
"default": "",
|
|
467
|
-
"description": "Data name identifier. MAX 64 BCS characters (Chinese chars count as 3-4 BCS bytes each). Use short identifiers like 'order_id', 'delivery_node'. Put longer descriptions in the Guard's 'description' field, NOT here."
|
|
479
|
+
"description": "Data name identifier. MAX 64 BCS characters (Chinese chars count as 3-4 BCS bytes each). Use short identifiers like 'order_id', 'delivery_node'. Put longer descriptions in the Guard's 'description' field, NOT here.",
|
|
480
|
+
"type": "string"
|
|
468
481
|
},
|
|
469
482
|
"object_type": {
|
|
483
|
+
"description": "OUTPUT-ONLY (query side): Object type when value_type is Address and represents a specific object. Auto-derived by the system — DO NOT set this field at Guard creation.",
|
|
470
484
|
"type": "string",
|
|
471
485
|
"enum": [
|
|
472
486
|
"Permission",
|
|
@@ -501,14 +515,14 @@
|
|
|
501
515
|
"TableItem_EntityLinker",
|
|
502
516
|
"TableItem_AddressMark",
|
|
503
517
|
"TableItem_EntityRegistrar"
|
|
504
|
-
]
|
|
505
|
-
"description": "OUTPUT-ONLY (query side): Object type when value_type is Address and represents a specific object. Auto-derived by the system — DO NOT set this field at Guard creation."
|
|
518
|
+
]
|
|
506
519
|
}
|
|
507
520
|
},
|
|
508
521
|
"required": [
|
|
509
522
|
"identifier",
|
|
510
523
|
"b_submission",
|
|
511
|
-
"value_type"
|
|
524
|
+
"value_type",
|
|
525
|
+
"name"
|
|
512
526
|
],
|
|
513
527
|
"additionalProperties": false,
|
|
514
528
|
"description": "Guard table item (QUERY/OUTPUT form — includes auto-derived object_type field)"
|
|
@@ -531,27 +545,26 @@
|
|
|
531
545
|
"guard",
|
|
532
546
|
"submission"
|
|
533
547
|
],
|
|
534
|
-
"additionalProperties": false
|
|
535
|
-
"description": "Optional submission data. If not provided, will attempt to get existing submissions from the guard."
|
|
548
|
+
"additionalProperties": false
|
|
536
549
|
},
|
|
537
550
|
"env": {
|
|
538
551
|
"type": "object",
|
|
539
552
|
"properties": {
|
|
540
553
|
"account": {
|
|
541
|
-
"
|
|
542
|
-
"
|
|
543
|
-
"
|
|
554
|
+
"default": "",
|
|
555
|
+
"type": "string",
|
|
556
|
+
"description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters)."
|
|
544
557
|
},
|
|
545
558
|
"permission_guard": {
|
|
559
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object).",
|
|
546
560
|
"type": "array",
|
|
547
561
|
"items": {
|
|
548
562
|
"type": "string"
|
|
549
|
-
}
|
|
550
|
-
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
563
|
+
}
|
|
551
564
|
},
|
|
552
565
|
"no_cache": {
|
|
553
|
-
"
|
|
554
|
-
"
|
|
566
|
+
"description": "Whether to disable caching.",
|
|
567
|
+
"type": "boolean"
|
|
555
568
|
},
|
|
556
569
|
"network": {
|
|
557
570
|
"type": "string",
|
|
@@ -563,38 +576,42 @@
|
|
|
563
576
|
"description": "Network entrypoint: Specifies which network the operation occurs on. FIX-010 cross-network note: LocalMark names are scoped per network (testnet marks are invisible on mainnet and vice versa). When migrating from testnet to mainnet, recreate all objects on mainnet and re-register LocalMark names with the SAME names to keep name-based references working across networks. Use project_operation action='clone_project_to_network' to clone the project blueprint to the target network, then re-run onchain_operations with env.network=target_network to deploy."
|
|
564
577
|
},
|
|
565
578
|
"referrer": {
|
|
566
|
-
"
|
|
567
|
-
"
|
|
579
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded.",
|
|
580
|
+
"type": "string"
|
|
568
581
|
},
|
|
569
582
|
"confirmed": {
|
|
570
|
-
"
|
|
571
|
-
"
|
|
583
|
+
"description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent.",
|
|
584
|
+
"type": "boolean"
|
|
572
585
|
},
|
|
573
586
|
"user_intent_phrases": {
|
|
587
|
+
"description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches.",
|
|
574
588
|
"type": "array",
|
|
575
589
|
"items": {
|
|
576
590
|
"type": "string"
|
|
577
|
-
}
|
|
578
|
-
"description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
|
|
591
|
+
}
|
|
579
592
|
},
|
|
580
593
|
"project": {
|
|
581
|
-
"
|
|
582
|
-
"
|
|
594
|
+
"description": "Project prefix to assign this object to (e.g. 'myshop'). When set: 1) the object is tagged with 'project:<prefix>' on-chain automatically via ProjectService, 2) the newly created object is auto-associated to the SQLite project for local management, evaluation, and graph tracking. The project MUST exist (create via project_operation action='create_project' first). Use project_operation to manage projects.",
|
|
595
|
+
"type": "string"
|
|
583
596
|
},
|
|
584
597
|
"client_schema_version": {
|
|
585
|
-
"
|
|
586
|
-
"
|
|
598
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched.",
|
|
599
|
+
"type": "string"
|
|
587
600
|
},
|
|
588
601
|
"schema_strict_mode": {
|
|
589
|
-
"type": "boolean",
|
|
590
602
|
"default": false,
|
|
591
|
-
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
603
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode).",
|
|
604
|
+
"type": "boolean"
|
|
592
605
|
},
|
|
593
606
|
"dry_run": {
|
|
594
|
-
"
|
|
595
|
-
"
|
|
607
|
+
"description": "Phase 1 dry_run: when true, SIMULATE the transaction without signing or submitting. Returns effects + events showing what WOULD happen — no on-chain state is modified, no gas is charged. Use this to verify an operation will succeed before committing. Essential for the 5-step loop's Plan step. The returned digest will be 'dry_run:<timestamp>' and objectChanges will be empty (simulation only).",
|
|
608
|
+
"type": "boolean"
|
|
596
609
|
}
|
|
597
610
|
},
|
|
611
|
+
"required": [
|
|
612
|
+
"account",
|
|
613
|
+
"schema_strict_mode"
|
|
614
|
+
],
|
|
598
615
|
"additionalProperties": false,
|
|
599
616
|
"description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
|
|
600
617
|
}
|
|
@@ -603,607 +620,5 @@
|
|
|
603
620
|
"operation_type",
|
|
604
621
|
"guard"
|
|
605
622
|
],
|
|
606
|
-
"additionalProperties": false
|
|
607
|
-
"definitions": {
|
|
608
|
-
"data": {
|
|
609
|
-
"type": "object",
|
|
610
|
-
"properties": {
|
|
611
|
-
"guard": {
|
|
612
|
-
"anyOf": [
|
|
613
|
-
{
|
|
614
|
-
"type": "string",
|
|
615
|
-
"description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters)."
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
"type": "array",
|
|
619
|
-
"items": {
|
|
620
|
-
"$ref": "#/definitions/data/properties/guard/anyOf/0"
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
],
|
|
624
|
-
"description": "Guard object ID(s) to verify and generate passport from. Can be a single guard (string) or multiple guards (array of strings). Supports guard names or addresses."
|
|
625
|
-
},
|
|
626
|
-
"info": {
|
|
627
|
-
"type": "object",
|
|
628
|
-
"properties": {
|
|
629
|
-
"type": {
|
|
630
|
-
"type": "string",
|
|
631
|
-
"const": "submission",
|
|
632
|
-
"description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
|
|
633
|
-
},
|
|
634
|
-
"guard": {
|
|
635
|
-
"type": "array",
|
|
636
|
-
"items": {
|
|
637
|
-
"type": "object",
|
|
638
|
-
"properties": {
|
|
639
|
-
"object": {
|
|
640
|
-
"$ref": "#/definitions/data/properties/guard/anyOf/0",
|
|
641
|
-
"description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
|
|
642
|
-
},
|
|
643
|
-
"impack": {
|
|
644
|
-
"type": "boolean",
|
|
645
|
-
"description": "Whether this Guard's verification result participates in the final logic. Constraint: if false, the Guard is checked but does not block the operation. Example: true"
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
"required": [
|
|
649
|
-
"object",
|
|
650
|
-
"impack"
|
|
651
|
-
],
|
|
652
|
-
"additionalProperties": false
|
|
653
|
-
},
|
|
654
|
-
"maxItems": 20,
|
|
655
|
-
"description": "Array of Guard objects to verify. Constraint: at most 20 entries (MAX_GUARD_COUNT_PASSPORT). Relation: each entry corresponds to a Guard bound to the operation."
|
|
656
|
-
},
|
|
657
|
-
"submission": {
|
|
658
|
-
"type": "array",
|
|
659
|
-
"items": {
|
|
660
|
-
"type": "object",
|
|
661
|
-
"properties": {
|
|
662
|
-
"guard": {
|
|
663
|
-
"$ref": "#/definitions/data/properties/guard/anyOf/0",
|
|
664
|
-
"description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
|
|
665
|
-
},
|
|
666
|
-
"submission": {
|
|
667
|
-
"type": "array",
|
|
668
|
-
"items": {
|
|
669
|
-
"type": "object",
|
|
670
|
-
"properties": {
|
|
671
|
-
"identifier": {
|
|
672
|
-
"type": "integer",
|
|
673
|
-
"minimum": 0,
|
|
674
|
-
"maximum": 255,
|
|
675
|
-
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
676
|
-
},
|
|
677
|
-
"b_submission": {
|
|
678
|
-
"type": "boolean",
|
|
679
|
-
"description": "Whether this table item's value is submitted dynamically at Guard trigger time (alloc_by_guard call). \n\ntrue = value is submitted by the caller when triggering the Guard. Use for runtime-context-dependent values like order address, user address. The 'value' field is ignored when b_submission=true; the caller must provide it via submissions[]. \n\nfalse = value is static, set at Guard creation time. Use for values known when the Guard is created: expected node names, expected merchant address, expected service address. The 'value' field must be populated and will be stored on-chain permanently. \n\nRule of thumb: if the value is the SAME for all future Guard triggers, use false. If the value DIFFERS per trigger (e.g., which order to release funds for), use true."
|
|
680
|
-
},
|
|
681
|
-
"value_type": {
|
|
682
|
-
"anyOf": [
|
|
683
|
-
{
|
|
684
|
-
"type": "number",
|
|
685
|
-
"const": 0,
|
|
686
|
-
"description": "Bool (0)"
|
|
687
|
-
},
|
|
688
|
-
{
|
|
689
|
-
"type": "number",
|
|
690
|
-
"const": 1,
|
|
691
|
-
"description": "Address (1)"
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
"type": "number",
|
|
695
|
-
"const": 2,
|
|
696
|
-
"description": "String (2)"
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
"type": "number",
|
|
700
|
-
"const": 3,
|
|
701
|
-
"description": "U8 (3)"
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
"type": "number",
|
|
705
|
-
"const": 4,
|
|
706
|
-
"description": "U16 (4)"
|
|
707
|
-
},
|
|
708
|
-
{
|
|
709
|
-
"type": "number",
|
|
710
|
-
"const": 5,
|
|
711
|
-
"description": "U32 (5)"
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
"type": "number",
|
|
715
|
-
"const": 6,
|
|
716
|
-
"description": "U64 (6)"
|
|
717
|
-
},
|
|
718
|
-
{
|
|
719
|
-
"type": "number",
|
|
720
|
-
"const": 7,
|
|
721
|
-
"description": "U128 (7)"
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
"type": "number",
|
|
725
|
-
"const": 8,
|
|
726
|
-
"description": "U256 (8)"
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"type": "number",
|
|
730
|
-
"const": 9,
|
|
731
|
-
"description": "VecBool (9)"
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
"type": "number",
|
|
735
|
-
"const": 10,
|
|
736
|
-
"description": "VecAddress (10)"
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
"type": "number",
|
|
740
|
-
"const": 11,
|
|
741
|
-
"description": "VecString (11)"
|
|
742
|
-
},
|
|
743
|
-
{
|
|
744
|
-
"type": "number",
|
|
745
|
-
"const": 12,
|
|
746
|
-
"description": "VecU8 (12)"
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
"type": "number",
|
|
750
|
-
"const": 13,
|
|
751
|
-
"description": "VecU16 (13)"
|
|
752
|
-
},
|
|
753
|
-
{
|
|
754
|
-
"type": "number",
|
|
755
|
-
"const": 14,
|
|
756
|
-
"description": "VecU32 (14)"
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
"type": "number",
|
|
760
|
-
"const": 15,
|
|
761
|
-
"description": "VecU64 (15)"
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
"type": "number",
|
|
765
|
-
"const": 16,
|
|
766
|
-
"description": "VecU128 (16)"
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
"type": "number",
|
|
770
|
-
"const": 17,
|
|
771
|
-
"description": "VecU256 (17)"
|
|
772
|
-
},
|
|
773
|
-
{
|
|
774
|
-
"type": "number",
|
|
775
|
-
"const": 18,
|
|
776
|
-
"description": "VecVecU8 (18)"
|
|
777
|
-
},
|
|
778
|
-
{
|
|
779
|
-
"type": "string",
|
|
780
|
-
"const": "Bool",
|
|
781
|
-
"description": "Bool"
|
|
782
|
-
},
|
|
783
|
-
{
|
|
784
|
-
"type": "string",
|
|
785
|
-
"const": "Address",
|
|
786
|
-
"description": "Address"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
"type": "string",
|
|
790
|
-
"const": "String",
|
|
791
|
-
"description": "String"
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
"type": "string",
|
|
795
|
-
"const": "U8",
|
|
796
|
-
"description": "U8"
|
|
797
|
-
},
|
|
798
|
-
{
|
|
799
|
-
"type": "string",
|
|
800
|
-
"const": "U16",
|
|
801
|
-
"description": "U16"
|
|
802
|
-
},
|
|
803
|
-
{
|
|
804
|
-
"type": "string",
|
|
805
|
-
"const": "U32",
|
|
806
|
-
"description": "U32"
|
|
807
|
-
},
|
|
808
|
-
{
|
|
809
|
-
"type": "string",
|
|
810
|
-
"const": "U64",
|
|
811
|
-
"description": "U64"
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
"type": "string",
|
|
815
|
-
"const": "U128",
|
|
816
|
-
"description": "U128"
|
|
817
|
-
},
|
|
818
|
-
{
|
|
819
|
-
"type": "string",
|
|
820
|
-
"const": "U256",
|
|
821
|
-
"description": "U256"
|
|
822
|
-
},
|
|
823
|
-
{
|
|
824
|
-
"type": "string",
|
|
825
|
-
"const": "VecBool",
|
|
826
|
-
"description": "VecBool"
|
|
827
|
-
},
|
|
828
|
-
{
|
|
829
|
-
"type": "string",
|
|
830
|
-
"const": "VecAddress",
|
|
831
|
-
"description": "VecAddress"
|
|
832
|
-
},
|
|
833
|
-
{
|
|
834
|
-
"type": "string",
|
|
835
|
-
"const": "VecString",
|
|
836
|
-
"description": "VecString"
|
|
837
|
-
},
|
|
838
|
-
{
|
|
839
|
-
"type": "string",
|
|
840
|
-
"const": "VecU8",
|
|
841
|
-
"description": "VecU8"
|
|
842
|
-
},
|
|
843
|
-
{
|
|
844
|
-
"type": "string",
|
|
845
|
-
"const": "VecU16",
|
|
846
|
-
"description": "VecU16"
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
"type": "string",
|
|
850
|
-
"const": "VecU32",
|
|
851
|
-
"description": "VecU32"
|
|
852
|
-
},
|
|
853
|
-
{
|
|
854
|
-
"type": "string",
|
|
855
|
-
"const": "VecU64",
|
|
856
|
-
"description": "VecU64"
|
|
857
|
-
},
|
|
858
|
-
{
|
|
859
|
-
"type": "string",
|
|
860
|
-
"const": "VecU128",
|
|
861
|
-
"description": "VecU128"
|
|
862
|
-
},
|
|
863
|
-
{
|
|
864
|
-
"type": "string",
|
|
865
|
-
"const": "VecU256",
|
|
866
|
-
"description": "VecU256"
|
|
867
|
-
},
|
|
868
|
-
{
|
|
869
|
-
"type": "string",
|
|
870
|
-
"const": "VecVecU8",
|
|
871
|
-
"description": "VecVecU8"
|
|
872
|
-
},
|
|
873
|
-
{
|
|
874
|
-
"type": "string",
|
|
875
|
-
"const": "bool",
|
|
876
|
-
"description": "bool"
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
"type": "string",
|
|
880
|
-
"const": "address",
|
|
881
|
-
"description": "address"
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
"type": "string",
|
|
885
|
-
"const": "string",
|
|
886
|
-
"description": "string"
|
|
887
|
-
},
|
|
888
|
-
{
|
|
889
|
-
"type": "string",
|
|
890
|
-
"const": "u8",
|
|
891
|
-
"description": "u8"
|
|
892
|
-
},
|
|
893
|
-
{
|
|
894
|
-
"type": "string",
|
|
895
|
-
"const": "u16",
|
|
896
|
-
"description": "u16"
|
|
897
|
-
},
|
|
898
|
-
{
|
|
899
|
-
"type": "string",
|
|
900
|
-
"const": "u32",
|
|
901
|
-
"description": "u32"
|
|
902
|
-
},
|
|
903
|
-
{
|
|
904
|
-
"type": "string",
|
|
905
|
-
"const": "u64",
|
|
906
|
-
"description": "u64"
|
|
907
|
-
},
|
|
908
|
-
{
|
|
909
|
-
"type": "string",
|
|
910
|
-
"const": "u128",
|
|
911
|
-
"description": "u128"
|
|
912
|
-
},
|
|
913
|
-
{
|
|
914
|
-
"type": "string",
|
|
915
|
-
"const": "u256",
|
|
916
|
-
"description": "u256"
|
|
917
|
-
},
|
|
918
|
-
{
|
|
919
|
-
"type": "string",
|
|
920
|
-
"const": "vecbool",
|
|
921
|
-
"description": "vecbool"
|
|
922
|
-
},
|
|
923
|
-
{
|
|
924
|
-
"type": "string",
|
|
925
|
-
"const": "vecaddress",
|
|
926
|
-
"description": "vecaddress"
|
|
927
|
-
},
|
|
928
|
-
{
|
|
929
|
-
"type": "string",
|
|
930
|
-
"const": "vecstring",
|
|
931
|
-
"description": "vecstring"
|
|
932
|
-
},
|
|
933
|
-
{
|
|
934
|
-
"type": "string",
|
|
935
|
-
"const": "vecu8",
|
|
936
|
-
"description": "vecu8"
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
"type": "string",
|
|
940
|
-
"const": "vecu16",
|
|
941
|
-
"description": "vecu16"
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
"type": "string",
|
|
945
|
-
"const": "vecu32",
|
|
946
|
-
"description": "vecu32"
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
"type": "string",
|
|
950
|
-
"const": "vecu64",
|
|
951
|
-
"description": "vecu64"
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
"type": "string",
|
|
955
|
-
"const": "vecu128",
|
|
956
|
-
"description": "vecu128"
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
"type": "string",
|
|
960
|
-
"const": "vecu256",
|
|
961
|
-
"description": "vecu256"
|
|
962
|
-
},
|
|
963
|
-
{
|
|
964
|
-
"type": "string",
|
|
965
|
-
"const": "vecvecu8",
|
|
966
|
-
"description": "vecvecu8"
|
|
967
|
-
}
|
|
968
|
-
],
|
|
969
|
-
"description": "Type of the value stored in `value`. One of: Bool(0), Address(1), String(2), U8(3), U16(4), U32(5), U64(6), U128(7), U256(8), VecBool(9), VecAddress(10), VecString(11), VecU8(12), VecU16(13), VecU32(14), VecU64(15), VecU128(16), VecU256(17), VecVecU8(18). When value_type=Address (1), the `value` field accepts a hex address string, a LocalMark name, or an AccountOrMark_Address object — see `value` field description for details."
|
|
970
|
-
},
|
|
971
|
-
"value": {
|
|
972
|
-
"anyOf": [
|
|
973
|
-
{
|
|
974
|
-
"type": "boolean"
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
"anyOf": [
|
|
978
|
-
{
|
|
979
|
-
"type": "object",
|
|
980
|
-
"properties": {
|
|
981
|
-
"name_or_address": {
|
|
982
|
-
"$ref": "#/definitions/data/properties/guard/anyOf/0",
|
|
983
|
-
"description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters)."
|
|
984
|
-
},
|
|
985
|
-
"local_mark_first": {
|
|
986
|
-
"type": "boolean",
|
|
987
|
-
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
988
|
-
}
|
|
989
|
-
},
|
|
990
|
-
"additionalProperties": false,
|
|
991
|
-
"description": "Account or address lookup object. Use this to specify which account to use for an operation. EXAMPLE: { name_or_address: 'testor2' } - looks up account by name; EXAMPLE: { name_or_address: '0x1234...' } - uses address directly; If name_or_address is empty string '', uses the default local account."
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
"type": "string"
|
|
995
|
-
}
|
|
996
|
-
]
|
|
997
|
-
},
|
|
998
|
-
{
|
|
999
|
-
"type": "string"
|
|
1000
|
-
},
|
|
1001
|
-
{
|
|
1002
|
-
"type": "number"
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
"type": "array",
|
|
1006
|
-
"items": {
|
|
1007
|
-
"type": "boolean"
|
|
1008
|
-
}
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
"anyOf": [
|
|
1012
|
-
{
|
|
1013
|
-
"type": "object",
|
|
1014
|
-
"properties": {
|
|
1015
|
-
"entities": {
|
|
1016
|
-
"type": "array",
|
|
1017
|
-
"items": {
|
|
1018
|
-
"$ref": "#/definitions/data/properties/info/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
|
|
1019
|
-
}
|
|
1020
|
-
},
|
|
1021
|
-
"check_all_founded": {
|
|
1022
|
-
"type": "boolean",
|
|
1023
|
-
"description": "Whether to check all entities are found, if true, all entities must be found (abort and throw exception if any ID not found); if false, only return found IDs"
|
|
1024
|
-
}
|
|
1025
|
-
},
|
|
1026
|
-
"required": [
|
|
1027
|
-
"entities"
|
|
1028
|
-
],
|
|
1029
|
-
"additionalProperties": false,
|
|
1030
|
-
"description": "Used to batch find account or object IDs by name"
|
|
1031
|
-
},
|
|
1032
|
-
{
|
|
1033
|
-
"type": "array",
|
|
1034
|
-
"items": {
|
|
1035
|
-
"type": "string"
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
]
|
|
1039
|
-
},
|
|
1040
|
-
{
|
|
1041
|
-
"type": "array",
|
|
1042
|
-
"items": {
|
|
1043
|
-
"type": "string"
|
|
1044
|
-
}
|
|
1045
|
-
},
|
|
1046
|
-
{
|
|
1047
|
-
"type": "array",
|
|
1048
|
-
"items": {
|
|
1049
|
-
"type": "number"
|
|
1050
|
-
}
|
|
1051
|
-
},
|
|
1052
|
-
{
|
|
1053
|
-
"type": "array",
|
|
1054
|
-
"items": {
|
|
1055
|
-
"type": "array",
|
|
1056
|
-
"items": {
|
|
1057
|
-
"type": "number"
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
],
|
|
1062
|
-
"description": "The actual value data. Format depends on `value_type`:\n• Bool: true/false (boolean)\n• Address (CRITICAL — string 'Address' is NOT a placeholder): a hex address (e.g. '0x1234...'), a LocalMark name (e.g. 'my-service' — resolved to address at evaluation time), an AccountOrMark_Address object (e.g. {name_or_address:'my-service'}), or system shorthand ('0xaaa' = EntityLinker, '0xaab' = EntityRegistrar). The literal string 'Address' itself is INVALID — it would be treated as a non-existent LocalMark name and fail. Example: value='0x2::wow::WOW<address>' or value='my-permission'.\n• String: any string\n• U8/U16/U32/U64/U128/U256: number or numeric string (e.g. 42 or '42')\n• Vec* types: arrays of the corresponding element type\nREQUIRED when b_submission=false. OPTIONAL when b_submission=true (value is supplied at evaluation time by user submission)."
|
|
1063
|
-
},
|
|
1064
|
-
"name": {
|
|
1065
|
-
"type": "string",
|
|
1066
|
-
"default": "",
|
|
1067
|
-
"description": "Data name identifier. MAX 64 BCS characters (Chinese chars count as 3-4 BCS bytes each). Use short identifiers like 'order_id', 'delivery_node'. Put longer descriptions in the Guard's 'description' field, NOT here."
|
|
1068
|
-
},
|
|
1069
|
-
"object_type": {
|
|
1070
|
-
"type": "string",
|
|
1071
|
-
"enum": [
|
|
1072
|
-
"Permission",
|
|
1073
|
-
"Repository",
|
|
1074
|
-
"Arb",
|
|
1075
|
-
"Arbitration",
|
|
1076
|
-
"Service",
|
|
1077
|
-
"Machine",
|
|
1078
|
-
"Order",
|
|
1079
|
-
"Progress",
|
|
1080
|
-
"Payment",
|
|
1081
|
-
"Treasury",
|
|
1082
|
-
"Guard",
|
|
1083
|
-
"Demand",
|
|
1084
|
-
"Passport",
|
|
1085
|
-
"Allocation",
|
|
1086
|
-
"Resource",
|
|
1087
|
-
"Reward",
|
|
1088
|
-
"Discount",
|
|
1089
|
-
"EntityRegistrar",
|
|
1090
|
-
"EntityLinker",
|
|
1091
|
-
"Proof",
|
|
1092
|
-
"WReceivedObject",
|
|
1093
|
-
"Contact",
|
|
1094
|
-
"TableItem_ProgressHistory",
|
|
1095
|
-
"TableItem_PermissionPerm",
|
|
1096
|
-
"TableItem_DemandPresenter",
|
|
1097
|
-
"TableItem_MachineNode",
|
|
1098
|
-
"TableItem_TreasuryHistory",
|
|
1099
|
-
"TableItem_RepositoryData",
|
|
1100
|
-
"TableItem_RewardRecord",
|
|
1101
|
-
"TableItem_EntityLinker",
|
|
1102
|
-
"TableItem_AddressMark",
|
|
1103
|
-
"TableItem_EntityRegistrar"
|
|
1104
|
-
],
|
|
1105
|
-
"description": "OUTPUT-ONLY (query side): Object type when value_type is Address and represents a specific object. Auto-derived by the system — DO NOT set this field at Guard creation."
|
|
1106
|
-
}
|
|
1107
|
-
},
|
|
1108
|
-
"required": [
|
|
1109
|
-
"identifier",
|
|
1110
|
-
"b_submission",
|
|
1111
|
-
"value_type"
|
|
1112
|
-
],
|
|
1113
|
-
"additionalProperties": false,
|
|
1114
|
-
"description": "Guard table item (QUERY/OUTPUT form — includes auto-derived object_type field)"
|
|
1115
|
-
},
|
|
1116
|
-
"description": "User-submitted data matching the Guard's required fields. Relation: structure must match the Guard table's column definitions. Example: [{field:'delivery_proof', value:'Qm...'}]"
|
|
1117
|
-
}
|
|
1118
|
-
},
|
|
1119
|
-
"required": [
|
|
1120
|
-
"guard",
|
|
1121
|
-
"submission"
|
|
1122
|
-
],
|
|
1123
|
-
"additionalProperties": false,
|
|
1124
|
-
"description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
|
|
1125
|
-
},
|
|
1126
|
-
"description": "User-submitted data for each Guard. Relation: one entry per Guard in the guard array; fill submission fields and resubmit via call_with_submission. PLACEMENT: this `submission` field is at the SAME level as `data` and `env` in the operation input — NOT inside `data.data`. Example structure: {tool:'onchain_operations', data:{operation_type:'order', data:{object:'my_order', progress:{...}}}, submission:{type:'submission', guard:[...], submission:[...]}}"
|
|
1127
|
-
}
|
|
1128
|
-
},
|
|
1129
|
-
"required": [
|
|
1130
|
-
"type",
|
|
1131
|
-
"guard",
|
|
1132
|
-
"submission"
|
|
1133
|
-
],
|
|
1134
|
-
"additionalProperties": false,
|
|
1135
|
-
"description": "Optional submission data. If not provided, will attempt to get existing submissions from the guard."
|
|
1136
|
-
},
|
|
1137
|
-
"env": {
|
|
1138
|
-
"type": "object",
|
|
1139
|
-
"properties": {
|
|
1140
|
-
"account": {
|
|
1141
|
-
"$ref": "#/definitions/data/properties/guard/anyOf/0",
|
|
1142
|
-
"description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters).",
|
|
1143
|
-
"default": ""
|
|
1144
|
-
},
|
|
1145
|
-
"permission_guard": {
|
|
1146
|
-
"type": "array",
|
|
1147
|
-
"items": {
|
|
1148
|
-
"type": "string"
|
|
1149
|
-
},
|
|
1150
|
-
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
1151
|
-
},
|
|
1152
|
-
"no_cache": {
|
|
1153
|
-
"type": "boolean",
|
|
1154
|
-
"description": "Whether to disable caching."
|
|
1155
|
-
},
|
|
1156
|
-
"network": {
|
|
1157
|
-
"type": "string",
|
|
1158
|
-
"enum": [
|
|
1159
|
-
"localnet",
|
|
1160
|
-
"testnet",
|
|
1161
|
-
"mainnet"
|
|
1162
|
-
],
|
|
1163
|
-
"description": "Network entrypoint: Specifies which network the operation occurs on. FIX-010 cross-network note: LocalMark names are scoped per network (testnet marks are invisible on mainnet and vice versa). When migrating from testnet to mainnet, recreate all objects on mainnet and re-register LocalMark names with the SAME names to keep name-based references working across networks. Use project_operation action='clone_project_to_network' to clone the project blueprint to the target network, then re-run onchain_operations with env.network=target_network to deploy."
|
|
1164
|
-
},
|
|
1165
|
-
"referrer": {
|
|
1166
|
-
"$ref": "#/definitions/data/properties/guard/anyOf/0",
|
|
1167
|
-
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
1168
|
-
},
|
|
1169
|
-
"confirmed": {
|
|
1170
|
-
"type": "boolean",
|
|
1171
|
-
"description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
|
|
1172
|
-
},
|
|
1173
|
-
"user_intent_phrases": {
|
|
1174
|
-
"type": "array",
|
|
1175
|
-
"items": {
|
|
1176
|
-
"type": "string"
|
|
1177
|
-
},
|
|
1178
|
-
"description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
|
|
1179
|
-
},
|
|
1180
|
-
"project": {
|
|
1181
|
-
"type": "string",
|
|
1182
|
-
"description": "Project prefix to assign this object to (e.g. 'myshop'). When set: 1) the object is tagged with 'project:<prefix>' on-chain automatically via ProjectService, 2) the newly created object is auto-associated to the SQLite project for local management, evaluation, and graph tracking. The project MUST exist (create via project_operation action='create_project' first). Use project_operation to manage projects."
|
|
1183
|
-
},
|
|
1184
|
-
"client_schema_version": {
|
|
1185
|
-
"type": "string",
|
|
1186
|
-
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
1187
|
-
},
|
|
1188
|
-
"schema_strict_mode": {
|
|
1189
|
-
"type": "boolean",
|
|
1190
|
-
"default": false,
|
|
1191
|
-
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
1192
|
-
},
|
|
1193
|
-
"dry_run": {
|
|
1194
|
-
"type": "boolean",
|
|
1195
|
-
"description": "Phase 1 dry_run: when true, SIMULATE the transaction without signing or submitting. Returns effects + events showing what WOULD happen — no on-chain state is modified, no gas is charged. Use this to verify an operation will succeed before committing. Essential for the 5-step loop's Plan step. The returned digest will be 'dry_run:<timestamp>' and objectChanges will be empty (simulation only)."
|
|
1196
|
-
}
|
|
1197
|
-
},
|
|
1198
|
-
"additionalProperties": false,
|
|
1199
|
-
"description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
|
|
1200
|
-
}
|
|
1201
|
-
},
|
|
1202
|
-
"required": [
|
|
1203
|
-
"guard"
|
|
1204
|
-
],
|
|
1205
|
-
"additionalProperties": false,
|
|
1206
|
-
"description": "Generate a new Passport object after Guard verification succeeds. The Passport is an immutable on-chain object that can be used for offline friend verification, transaction condition verification, etc. Supports verifying multiple guards at once."
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
623
|
+
"additionalProperties": false
|
|
1209
624
|
}
|