@wowok/agent-mcp 2.4.1 → 2.5.0
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.d.ts +4 -0
- package/dist/config/runtime.js +29 -5
- package/dist/harness/auto-escalation.d.ts +27 -0
- package/dist/harness/auto-escalation.js +68 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +29 -1621
- package/dist/knowledge/allocation-confirm.d.ts +115 -0
- package/dist/knowledge/allocation-confirm.js +534 -0
- package/dist/knowledge/allocation-context.d.ts +58 -0
- package/dist/knowledge/allocation-context.js +249 -0
- package/dist/knowledge/allocation-ledger.d.ts +67 -0
- package/dist/knowledge/allocation-ledger.js +463 -0
- package/dist/knowledge/allocation-puzzle.d.ts +135 -0
- package/dist/knowledge/allocation-puzzle.js +298 -0
- package/dist/knowledge/allocation-risk.d.ts +78 -0
- package/dist/knowledge/allocation-risk.js +568 -0
- package/dist/knowledge/allocation-templates.d.ts +38 -0
- package/dist/knowledge/allocation-templates.js +970 -0
- package/dist/knowledge/allocation-translation.d.ts +72 -0
- package/dist/knowledge/allocation-translation.js +585 -0
- package/dist/knowledge/arb-risk.d.ts +37 -0
- package/dist/knowledge/arb-risk.js +210 -0
- package/dist/knowledge/arbitration-confirm.d.ts +135 -0
- package/dist/knowledge/arbitration-confirm.js +559 -0
- package/dist/knowledge/arbitration-context.d.ts +81 -0
- package/dist/knowledge/arbitration-context.js +505 -0
- package/dist/knowledge/arbitration-ledger.d.ts +62 -0
- package/dist/knowledge/arbitration-ledger.js +521 -0
- package/dist/knowledge/arbitration-puzzle.d.ts +84 -0
- package/dist/knowledge/arbitration-puzzle.js +304 -0
- package/dist/knowledge/arbitration-risk.d.ts +112 -0
- package/dist/knowledge/arbitration-risk.js +433 -0
- package/dist/knowledge/arbitration-templates.d.ts +38 -0
- package/dist/knowledge/arbitration-templates.js +276 -0
- package/dist/knowledge/arbitration-translation.d.ts +91 -0
- package/dist/knowledge/arbitration-translation.js +487 -0
- package/dist/knowledge/bridge-risk.d.ts +36 -0
- package/dist/knowledge/bridge-risk.js +263 -0
- package/dist/knowledge/contact-risk.d.ts +32 -0
- package/dist/knowledge/contact-risk.js +200 -0
- package/dist/knowledge/demand-confirm.d.ts +32 -0
- package/dist/knowledge/demand-confirm.js +206 -0
- package/dist/knowledge/demand-risk.d.ts +30 -0
- package/dist/knowledge/demand-risk.js +240 -0
- package/dist/knowledge/demand-translation.d.ts +55 -0
- package/dist/knowledge/demand-translation.js +354 -0
- package/dist/knowledge/deployment-scanner.d.ts +63 -0
- package/dist/knowledge/deployment-scanner.js +762 -0
- package/dist/knowledge/examples-scanner-cli.d.ts +1 -0
- package/dist/knowledge/examples-scanner-cli.js +26 -0
- package/dist/knowledge/examples-scanner.d.ts +121 -0
- package/dist/knowledge/examples-scanner.js +825 -0
- package/dist/knowledge/flywheel-loop.d.ts +3 -0
- package/dist/knowledge/flywheel-loop.js +32 -3
- package/dist/knowledge/glossary.js +3 -1
- package/dist/knowledge/guard-confirm.d.ts +86 -0
- package/dist/knowledge/guard-confirm.js +406 -0
- package/dist/knowledge/guard-context.d.ts +56 -0
- package/dist/knowledge/guard-context.js +287 -0
- package/dist/knowledge/guard-design-patterns.d.ts +37 -0
- package/dist/knowledge/guard-design-patterns.js +257 -0
- package/dist/knowledge/guard-ledger.js +14 -0
- package/dist/knowledge/guard-lint.d.ts +1 -0
- package/dist/knowledge/guard-lint.js +83 -3
- package/dist/knowledge/guard-migration.d.ts +48 -0
- package/dist/knowledge/guard-migration.js +228 -0
- package/dist/knowledge/guard-puzzle.js +3 -2
- package/dist/knowledge/guard-risk.d.ts +3 -1
- package/dist/knowledge/guard-risk.js +832 -64
- package/dist/knowledge/guard-templates.d.ts +1 -0
- package/dist/knowledge/guard-templates.js +278 -2
- package/dist/knowledge/guard-translation.js +6 -5
- package/dist/knowledge/index.d.ts +342 -0
- package/dist/knowledge/index.js +344 -0
- package/dist/knowledge/machine-confirm.d.ts +102 -0
- package/dist/knowledge/machine-confirm.js +559 -0
- package/dist/knowledge/machine-context.d.ts +160 -0
- package/dist/knowledge/machine-context.js +812 -0
- package/dist/knowledge/machine-ledger.d.ts +41 -0
- package/dist/knowledge/machine-ledger.js +315 -0
- package/dist/knowledge/machine-puzzle.d.ts +206 -0
- package/dist/knowledge/machine-puzzle.js +494 -0
- package/dist/knowledge/machine-risk.d.ts +75 -0
- package/dist/knowledge/machine-risk.js +644 -0
- package/dist/knowledge/machine-templates.d.ts +92 -0
- package/dist/knowledge/machine-templates.js +1592 -0
- package/dist/knowledge/machine-topology.d.ts +57 -0
- package/dist/knowledge/machine-topology.js +234 -0
- package/dist/knowledge/machine-translation.d.ts +96 -0
- package/dist/knowledge/machine-translation.js +513 -0
- package/dist/knowledge/mcp-schema-audit-cli.d.ts +1 -0
- package/dist/knowledge/mcp-schema-audit-cli.js +45 -0
- package/dist/knowledge/mcp-schema-audit.d.ts +90 -0
- package/dist/knowledge/mcp-schema-audit.js +772 -0
- package/dist/knowledge/onchain-constants.d.ts +4 -0
- package/dist/knowledge/onchain-constants.js +35 -0
- package/dist/knowledge/order-confirm.d.ts +115 -0
- package/dist/knowledge/order-confirm.js +573 -0
- package/dist/knowledge/order-context.d.ts +66 -0
- package/dist/knowledge/order-context.js +390 -0
- package/dist/knowledge/order-ledger.d.ts +69 -0
- package/dist/knowledge/order-ledger.js +341 -0
- package/dist/knowledge/order-puzzle.d.ts +159 -0
- package/dist/knowledge/order-puzzle.js +255 -0
- package/dist/knowledge/order-risk.d.ts +66 -0
- package/dist/knowledge/order-risk.js +653 -0
- package/dist/knowledge/order-templates.d.ts +50 -0
- package/dist/knowledge/order-templates.js +368 -0
- package/dist/knowledge/order-translation.d.ts +78 -0
- package/dist/knowledge/order-translation.js +550 -0
- package/dist/knowledge/passport-confirm.d.ts +130 -0
- package/dist/knowledge/passport-confirm.js +531 -0
- package/dist/knowledge/passport-context.d.ts +59 -0
- package/dist/knowledge/passport-context.js +306 -0
- package/dist/knowledge/passport-ledger.d.ts +48 -0
- package/dist/knowledge/passport-ledger.js +282 -0
- package/dist/knowledge/passport-puzzle.d.ts +108 -0
- package/dist/knowledge/passport-puzzle.js +333 -0
- package/dist/knowledge/passport-risk.d.ts +70 -0
- package/dist/knowledge/passport-risk.js +450 -0
- package/dist/knowledge/passport-templates.d.ts +40 -0
- package/dist/knowledge/passport-templates.js +568 -0
- package/dist/knowledge/passport-translation.d.ts +68 -0
- package/dist/knowledge/passport-translation.js +516 -0
- package/dist/knowledge/payment-risk.d.ts +33 -0
- package/dist/knowledge/payment-risk.js +182 -0
- package/dist/knowledge/permission-confirm.d.ts +110 -0
- package/dist/knowledge/permission-confirm.js +426 -0
- package/dist/knowledge/permission-context.d.ts +58 -0
- package/dist/knowledge/permission-context.js +224 -0
- package/dist/knowledge/permission-ledger.d.ts +38 -0
- package/dist/knowledge/permission-ledger.js +403 -0
- package/dist/knowledge/permission-puzzle.d.ts +122 -0
- package/dist/knowledge/permission-puzzle.js +173 -0
- package/dist/knowledge/permission-risk.d.ts +76 -0
- package/dist/knowledge/permission-risk.js +411 -0
- package/dist/knowledge/permission-templates.d.ts +38 -0
- package/dist/knowledge/permission-templates.js +234 -0
- package/dist/knowledge/permission-translation.d.ts +57 -0
- package/dist/knowledge/permission-translation.js +350 -0
- package/dist/knowledge/personal-risk.d.ts +36 -0
- package/dist/knowledge/personal-risk.js +212 -0
- package/dist/knowledge/progress-confirm.d.ts +108 -0
- package/dist/knowledge/progress-confirm.js +456 -0
- package/dist/knowledge/progress-context.d.ts +123 -0
- package/dist/knowledge/progress-context.js +452 -0
- package/dist/knowledge/progress-ledger.d.ts +63 -0
- package/dist/knowledge/progress-ledger.js +327 -0
- package/dist/knowledge/progress-puzzle.d.ts +82 -0
- package/dist/knowledge/progress-puzzle.js +219 -0
- package/dist/knowledge/progress-risk.d.ts +74 -0
- package/dist/knowledge/progress-risk.js +461 -0
- package/dist/knowledge/progress-templates.d.ts +38 -0
- package/dist/knowledge/progress-templates.js +228 -0
- package/dist/knowledge/progress-translation.d.ts +52 -0
- package/dist/knowledge/progress-translation.js +401 -0
- package/dist/knowledge/proof-confirm.d.ts +31 -0
- package/dist/knowledge/proof-confirm.js +187 -0
- package/dist/knowledge/proof-risk.d.ts +33 -0
- package/dist/knowledge/proof-risk.js +207 -0
- package/dist/knowledge/proof-translation.d.ts +52 -0
- package/dist/knowledge/proof-translation.js +283 -0
- package/dist/knowledge/registrar-risk.d.ts +34 -0
- package/dist/knowledge/registrar-risk.js +217 -0
- package/dist/knowledge/repository-confirm.d.ts +36 -0
- package/dist/knowledge/repository-confirm.js +242 -0
- package/dist/knowledge/repository-risk.d.ts +40 -0
- package/dist/knowledge/repository-risk.js +312 -0
- package/dist/knowledge/repository-translation.d.ts +58 -0
- package/dist/knowledge/repository-translation.js +422 -0
- package/dist/knowledge/resource-risk.d.ts +32 -0
- package/dist/knowledge/resource-risk.js +157 -0
- package/dist/knowledge/reward-confirm.d.ts +113 -0
- package/dist/knowledge/reward-confirm.js +496 -0
- package/dist/knowledge/reward-context.d.ts +127 -0
- package/dist/knowledge/reward-context.js +504 -0
- package/dist/knowledge/reward-ledger.d.ts +96 -0
- package/dist/knowledge/reward-ledger.js +502 -0
- package/dist/knowledge/reward-puzzle.d.ts +97 -0
- package/dist/knowledge/reward-puzzle.js +288 -0
- package/dist/knowledge/reward-risk.d.ts +84 -0
- package/dist/knowledge/reward-risk.js +545 -0
- package/dist/knowledge/reward-translation.d.ts +58 -0
- package/dist/knowledge/reward-translation.js +501 -0
- package/dist/knowledge/safety-rules.js +11 -3
- package/dist/knowledge/scenario-modes.d.ts +53 -0
- package/dist/knowledge/scenario-modes.js +302 -0
- package/dist/knowledge/service-confirm.d.ts +152 -0
- package/dist/knowledge/service-confirm.js +699 -0
- package/dist/knowledge/service-context.d.ts +66 -0
- package/dist/knowledge/service-context.js +403 -0
- package/dist/knowledge/service-ledger.d.ts +71 -0
- package/dist/knowledge/service-ledger.js +609 -0
- package/dist/knowledge/service-puzzle.d.ts +158 -0
- package/dist/knowledge/service-puzzle.js +236 -0
- package/dist/knowledge/service-risk.d.ts +108 -0
- package/dist/knowledge/service-risk.js +615 -0
- package/dist/knowledge/service-templates.d.ts +39 -0
- package/dist/knowledge/service-templates.js +418 -0
- package/dist/knowledge/service-translation.d.ts +103 -0
- package/dist/knowledge/service-translation.js +622 -0
- package/dist/knowledge/tools-reference.d.ts +17 -0
- package/dist/knowledge/tools-reference.js +151 -0
- package/dist/knowledge/treasury-confirm.d.ts +133 -0
- package/dist/knowledge/treasury-confirm.js +512 -0
- package/dist/knowledge/treasury-context.d.ts +64 -0
- package/dist/knowledge/treasury-context.js +363 -0
- package/dist/knowledge/treasury-ledger.d.ts +42 -0
- package/dist/knowledge/treasury-ledger.js +300 -0
- package/dist/knowledge/treasury-puzzle.d.ts +163 -0
- package/dist/knowledge/treasury-puzzle.js +216 -0
- package/dist/knowledge/treasury-risk.d.ts +86 -0
- package/dist/knowledge/treasury-risk.js +440 -0
- package/dist/knowledge/treasury-templates.d.ts +38 -0
- package/dist/knowledge/treasury-templates.js +316 -0
- package/dist/knowledge/treasury-translation.d.ts +78 -0
- package/dist/knowledge/treasury-translation.js +498 -0
- package/dist/knowledge/util-risk.d.ts +30 -0
- package/dist/knowledge/util-risk.js +135 -0
- package/dist/project/business-puzzle.d.ts +47 -0
- package/dist/project/business-puzzle.js +372 -0
- package/dist/project/deployment-doc.d.ts +61 -0
- package/dist/project/deployment-doc.js +432 -0
- package/dist/project/graph.d.ts +1 -0
- package/dist/project/graph.js +27 -1
- package/dist/project/index.d.ts +1 -0
- package/dist/project/index.js +39 -2
- package/dist/project/namespace.d.ts +11 -1
- package/dist/project/namespace.js +27 -2
- package/dist/project/query.d.ts +2 -0
- package/dist/project/query.js +56 -15
- package/dist/project/risk-aggregator.d.ts +50 -0
- package/dist/project/risk-aggregator.js +280 -0
- package/dist/project/substep-trace.d.ts +130 -0
- package/dist/project/substep-trace.js +332 -0
- package/dist/rules.d.ts +12 -0
- package/dist/rules.js +9 -0
- package/dist/schema/call/allocation.d.ts +44 -44
- package/dist/schema/call/arbitration.d.ts +141 -141
- package/dist/schema/call/base.d.ts +386 -386
- package/dist/schema/call/base.js +6 -6
- package/dist/schema/call/bridge-handler.d.ts +5 -2
- package/dist/schema/call/bridge.d.ts +159 -159
- package/dist/schema/call/contact.d.ts +110 -110
- package/dist/schema/call/demand.d.ts +76 -76
- package/dist/schema/call/handler.d.ts +2 -3
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/machine.d.ts +96 -96
- package/dist/schema/call/order.d.ts +98 -110
- package/dist/schema/call/permission-handler.d.ts +5 -0
- package/dist/schema/call/permission-handler.js +54 -0
- package/dist/schema/call/permission.d.ts +108 -108
- package/dist/schema/call/personal.d.ts +14 -14
- package/dist/schema/call/progress.d.ts +57 -72
- package/dist/schema/call/progress.js +7 -4
- package/dist/schema/call/proof.d.ts +18 -18
- package/dist/schema/call/proof.js +12 -7
- package/dist/schema/call/repository.d.ts +154 -154
- package/dist/schema/call/reward.d.ts +55 -55
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +238 -238
- package/dist/schema/call/treasury.d.ts +93 -93
- package/dist/schema/config/index.d.ts +178 -5
- package/dist/schema/config/index.js +52 -1
- package/dist/schema/local/index.d.ts +3554 -836
- package/dist/schema/local/index.js +2 -1
- package/dist/schema/messenger/index.d.ts +162 -162
- package/dist/schema/operations.d.ts +1102 -1118
- package/dist/schema/operations.js +7 -1
- package/dist/schema/project/index.d.ts +1392 -6
- package/dist/schema/project/index.js +426 -2
- package/dist/schema/query/index.d.ts +818 -818
- package/dist/schema/query/index.js +15 -9
- package/dist/schema/schema-query/index.d.ts +23 -3
- package/dist/schema/schema-query/index.js +13 -2
- package/dist/schema/sync-layer4.d.ts +21 -0
- package/dist/schema/sync-layer4.js +261 -0
- package/dist/schema/trust/index.d.ts +26 -26
- package/dist/schema/utils/guard-query-utils.d.ts +7 -0
- package/dist/schema/utils/guard-query-utils.js +14 -1
- package/dist/schemas/account_operation.output.json +718 -0
- package/dist/schemas/bridge_operation.output.json +1 -1
- package/dist/schemas/config_operation.output.json +173 -0
- package/dist/schemas/index.json +9 -1
- package/dist/schemas/local_info_operation.output.json +718 -0
- package/dist/schemas/local_mark_operation.output.json +718 -0
- package/dist/schemas/messenger_operation.output.json +1 -1
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.output.json +5 -4
- package/dist/schemas/onchain_operations.schema.json +1813 -333
- package/dist/schemas/onchain_operations_allocation.schema.json +9 -11
- package/dist/schemas/onchain_operations_arbitration.schema.json +2 -1
- package/dist/schemas/onchain_operations_contact.schema.json +2 -1
- package/dist/schemas/onchain_operations_demand.schema.json +2 -1
- package/dist/schemas/onchain_operations_gen_passport.schema.json +878 -872
- package/dist/schemas/onchain_operations_gen_proof.schema.json +273 -0
- package/dist/schemas/onchain_operations_guard.schema.json +584 -70
- package/dist/schemas/onchain_operations_machine.schema.json +4 -6
- package/dist/schemas/onchain_operations_order.schema.json +13 -9
- package/dist/schemas/onchain_operations_payment.schema.json +2 -1
- package/dist/schemas/onchain_operations_permission.schema.json +2 -1
- package/dist/schemas/onchain_operations_personal.schema.json +2 -1
- package/dist/schemas/onchain_operations_progress.schema.json +14 -10
- package/dist/schemas/onchain_operations_proof.schema.json +699 -0
- package/dist/schemas/onchain_operations_repository.schema.json +2 -1
- package/dist/schemas/onchain_operations_reward.schema.json +2 -1
- package/dist/schemas/onchain_operations_service.schema.json +4 -6
- package/dist/schemas/onchain_operations_treasury.schema.json +2 -1
- package/dist/schemas/onchain_table_data.output.json +6 -12
- package/dist/schemas/onchain_table_data.schema.json +32 -1
- package/dist/schemas/project_operation.output.json +879 -0
- package/dist/schemas/project_operation.schema.json +473 -2
- package/dist/schemas/query_toolkit.output.json +14906 -6
- package/dist/schemas/schema_query.output.json +38 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/tools/handlers/bridge.d.ts +1 -0
- package/dist/tools/handlers/bridge.js +1 -0
- package/dist/tools/handlers/config.d.ts +2 -0
- package/dist/tools/handlers/config.js +74 -0
- package/dist/tools/handlers/file-export.d.ts +3 -0
- package/dist/tools/handlers/file-export.js +90 -0
- package/dist/tools/handlers/local.d.ts +3 -0
- package/dist/tools/handlers/local.js +38 -0
- package/dist/tools/handlers/messenger.d.ts +16 -0
- package/dist/tools/handlers/messenger.js +188 -0
- package/dist/tools/handlers/onchain.d.ts +2 -0
- package/dist/tools/handlers/onchain.js +248 -0
- package/dist/tools/handlers/project.d.ts +2 -0
- package/dist/tools/handlers/project.js +293 -0
- package/dist/tools/handlers/query.d.ts +5 -0
- package/dist/tools/handlers/query.js +256 -0
- package/dist/tools/handlers/schema-query.d.ts +2 -0
- package/dist/tools/handlers/schema-query.js +93 -0
- package/dist/tools/handlers/trust.d.ts +2 -0
- package/dist/tools/handlers/trust.js +194 -0
- package/dist/tools/handlers/wip.d.ts +2 -0
- package/dist/tools/handlers/wip.js +44 -0
- package/dist/tools/index.d.ts +13 -0
- package/dist/tools/index.js +526 -0
- package/dist/tools/rules-hook.d.ts +2 -0
- package/dist/tools/rules-hook.js +23 -0
- package/dist/tools/shared.d.ts +20 -0
- package/dist/tools/shared.js +130 -0
- package/dist/tools/types.d.ts +35 -0
- package/dist/tools/types.js +1 -0
- package/dist/tools/wrap.d.ts +14 -0
- package/dist/tools/wrap.js +267 -0
- package/package.json +20 -6
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$id": "https://wowok.net/schemas/onchain_operations.json",
|
|
4
4
|
"title": "On-chain Operations",
|
|
5
|
-
"description": "On-chain operations for WoWok objects: service, machine, progress, repository, arbitration, contact, treasury, reward, allocation, permission, guard, personal, payment, demand, order, gen_passport.",
|
|
5
|
+
"description": "On-chain operations for WoWok objects: service, machine, progress, repository, arbitration, contact, treasury, reward, allocation, permission, guard, personal, payment, demand, order, gen_passport, proof, gen_proof.",
|
|
6
6
|
"oneOf": [
|
|
7
7
|
{
|
|
8
8
|
"type": "object",
|
|
@@ -277,69 +277,16 @@
|
|
|
277
277
|
"description": "On-chain Guard creation. IMPORTANT: All defined data (include all submitted data) must be defined in the 'table' field. USAGE: Set 'namedNew' field with {name, tags?, onChain?} to name the new Guard. The Guard is immutable once created. Define the validation logic in 'root' field. When root.type='file', the file can contain all Guard fields, and any fields defined in the schema will OVERRIDE the file content.",
|
|
278
278
|
"properties": {
|
|
279
279
|
"namedNew": {
|
|
280
|
-
"
|
|
281
|
-
"
|
|
282
|
-
"properties": {
|
|
283
|
-
"name": {
|
|
284
|
-
"type": "string",
|
|
285
|
-
"description": "The name of the object"
|
|
286
|
-
},
|
|
287
|
-
"tags": {
|
|
288
|
-
"type": "array",
|
|
289
|
-
"items": {
|
|
290
|
-
"type": "string"
|
|
291
|
-
},
|
|
292
|
-
"description": "The tags of the object"
|
|
293
|
-
},
|
|
294
|
-
"onChain": {
|
|
295
|
-
"type": "boolean",
|
|
296
|
-
"description": "CRITICAL: Whether to sync the name to the blockchain. DEFAULT (undefined/false): The name is stored LOCALLY ONLY on your device (PRIVATE). If set to true: The name is published ON-CHAIN and becomes PUBLICLY VISIBLE to everyone."
|
|
297
|
-
},
|
|
298
|
-
"replaceExistName": {
|
|
299
|
-
"type": "boolean",
|
|
300
|
-
"description": "FORCE CLAIM: Set to true ONLY when the user explicitly expresses a STRONG INTENTION to forcefully take over an existing name."
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
"additionalProperties": false
|
|
280
|
+
"$ref": "#/definitions/guard_namedNew",
|
|
281
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
304
282
|
},
|
|
305
283
|
"description": {
|
|
306
|
-
"
|
|
307
|
-
"
|
|
284
|
+
"$ref": "#/definitions/guard_description",
|
|
285
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
308
286
|
},
|
|
309
287
|
"table": {
|
|
310
|
-
"
|
|
311
|
-
"
|
|
312
|
-
"items": {
|
|
313
|
-
"type": "object",
|
|
314
|
-
"properties": {
|
|
315
|
-
"identifier": {
|
|
316
|
-
"type": "integer",
|
|
317
|
-
"minimum": 0,
|
|
318
|
-
"maximum": 255,
|
|
319
|
-
"description": "Identifier index (0-255) for referencing this value in Guard nodes"
|
|
320
|
-
},
|
|
321
|
-
"b_submission": {
|
|
322
|
-
"type": "boolean",
|
|
323
|
-
"description": "Whether user submission is required for this data"
|
|
324
|
-
},
|
|
325
|
-
"value_type": {
|
|
326
|
-
"type": "string",
|
|
327
|
-
"description": "Value type: Bool, Address, String, U8, U16, U32, U64, U128, U256, VecBool, VecAddress, VecString, VecU8, VecU16, VecU32, VecU64, VecU128, VecU256, VecVecU8"
|
|
328
|
-
},
|
|
329
|
-
"value": {
|
|
330
|
-
"description": "The actual value (omit if b_submission is true)"
|
|
331
|
-
},
|
|
332
|
-
"name": {
|
|
333
|
-
"type": "string",
|
|
334
|
-
"description": "Name or description of this data"
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
"required": [
|
|
338
|
-
"identifier",
|
|
339
|
-
"b_submission",
|
|
340
|
-
"value_type"
|
|
341
|
-
]
|
|
342
|
-
}
|
|
288
|
+
"$ref": "#/definitions/guard_table",
|
|
289
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
343
290
|
},
|
|
344
291
|
"root": {
|
|
345
292
|
"description": "Root definition: either a direct GuardNode computation tree (no type wrapper) or a file reference (type='file'). When type='file', the file can define all Guard fields (namedNew, description, table, root, rely), and schema fields override file content. For the node structure, see guard-node-schema.json for complete GuardNode definitions. IMPORTANT: The root node MUST be a logical operation returning Bool (e.g., logic_and, logic_or, logic_equal, query_reward_record_exists, etc.)",
|
|
@@ -377,29 +324,18 @@
|
|
|
377
324
|
]
|
|
378
325
|
},
|
|
379
326
|
"rely": {
|
|
380
|
-
"
|
|
381
|
-
"
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
"type": "string"
|
|
387
|
-
},
|
|
388
|
-
"description": "List of dependent Guard object IDs or names."
|
|
389
|
-
},
|
|
390
|
-
"logic_or": {
|
|
391
|
-
"type": "boolean",
|
|
392
|
-
"description": "Whether to use logical OR operator."
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
"required": [
|
|
396
|
-
"guards"
|
|
397
|
-
]
|
|
327
|
+
"$ref": "#/definitions/guard_rely",
|
|
328
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
329
|
+
},
|
|
330
|
+
"binding_hint": {
|
|
331
|
+
"$ref": "#/definitions/guard_binding_hint",
|
|
332
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
398
333
|
}
|
|
399
334
|
},
|
|
400
335
|
"required": [
|
|
401
336
|
"root"
|
|
402
|
-
]
|
|
337
|
+
],
|
|
338
|
+
"additionalProperties": false
|
|
403
339
|
},
|
|
404
340
|
"env": {
|
|
405
341
|
"$ref": "#/definitions/env",
|
|
@@ -527,155 +463,893 @@
|
|
|
527
463
|
"operation_type": {
|
|
528
464
|
"const": "gen_passport"
|
|
529
465
|
},
|
|
530
|
-
"data": {
|
|
531
|
-
"$ref": "#/definitions/data_gen_passport",
|
|
532
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
533
|
-
},
|
|
534
|
-
"env": {
|
|
535
|
-
"$ref": "#/definitions/env",
|
|
536
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
537
|
-
},
|
|
538
|
-
"submission": {
|
|
539
|
-
"$ref": "#/definitions/submission",
|
|
540
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
541
|
-
}
|
|
542
|
-
},
|
|
543
|
-
"required": [
|
|
544
|
-
"operation_type",
|
|
545
|
-
"data"
|
|
546
|
-
]
|
|
547
|
-
}
|
|
548
|
-
],
|
|
549
|
-
"definitions": {
|
|
550
|
-
"env": {
|
|
551
|
-
"type": "object",
|
|
552
|
-
"properties": {
|
|
553
|
-
"account": {
|
|
554
|
-
"type": "string",
|
|
555
|
-
"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).",
|
|
556
|
-
"default": ""
|
|
557
|
-
},
|
|
558
|
-
"permission_guard": {
|
|
559
|
-
"type": "array",
|
|
560
|
-
"items": {
|
|
561
|
-
"type": "string"
|
|
562
|
-
},
|
|
563
|
-
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
564
|
-
},
|
|
565
|
-
"no_cache": {
|
|
566
|
-
"type": "boolean",
|
|
567
|
-
"description": "Whether to disable caching."
|
|
568
|
-
},
|
|
569
|
-
"network": {
|
|
570
|
-
"type": "string",
|
|
571
|
-
"enum": [
|
|
572
|
-
"localnet",
|
|
573
|
-
"testnet",
|
|
574
|
-
"mainnet"
|
|
575
|
-
],
|
|
576
|
-
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
577
|
-
},
|
|
578
|
-
"referrer": {
|
|
579
|
-
"$ref": "#/definitions/env/properties/account",
|
|
580
|
-
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
581
|
-
},
|
|
582
|
-
"confirmed": {
|
|
583
|
-
"type": "boolean",
|
|
584
|
-
"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."
|
|
585
|
-
},
|
|
586
|
-
"user_intent_phrases": {
|
|
587
|
-
"type": "array",
|
|
588
|
-
"items": {
|
|
589
|
-
"type": "string"
|
|
590
|
-
},
|
|
591
|
-
"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."
|
|
592
|
-
},
|
|
593
|
-
"project": {
|
|
594
|
-
"type": "string",
|
|
595
|
-
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
596
|
-
},
|
|
597
|
-
"client_schema_version": {
|
|
598
|
-
"type": "string",
|
|
599
|
-
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
600
|
-
},
|
|
601
|
-
"schema_strict_mode": {
|
|
602
|
-
"type": "boolean",
|
|
603
|
-
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
604
|
-
}
|
|
605
|
-
},
|
|
606
|
-
"additionalProperties": false,
|
|
607
|
-
"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."
|
|
608
|
-
},
|
|
609
|
-
"submission": {
|
|
610
|
-
"type": "object",
|
|
611
|
-
"properties": {
|
|
612
|
-
"type": {
|
|
613
|
-
"type": "string",
|
|
614
|
-
"const": "submission",
|
|
615
|
-
"description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
|
|
616
|
-
},
|
|
617
466
|
"guard": {
|
|
618
|
-
"
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
"object": {
|
|
623
|
-
"type": "string",
|
|
624
|
-
"description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
|
|
625
|
-
},
|
|
626
|
-
"impack": {
|
|
627
|
-
"type": "boolean",
|
|
628
|
-
"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"
|
|
629
|
-
}
|
|
467
|
+
"anyOf": [
|
|
468
|
+
{
|
|
469
|
+
"type": "string",
|
|
470
|
+
"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)."
|
|
630
471
|
},
|
|
631
|
-
|
|
632
|
-
"
|
|
633
|
-
"
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
472
|
+
{
|
|
473
|
+
"type": "array",
|
|
474
|
+
"items": {
|
|
475
|
+
"$ref": "#/definitions/data_gen_passport/properties/guard/anyOf/0"
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
],
|
|
479
|
+
"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."
|
|
638
480
|
},
|
|
639
|
-
"
|
|
640
|
-
"type": "
|
|
641
|
-
"
|
|
642
|
-
"type":
|
|
643
|
-
|
|
644
|
-
"
|
|
645
|
-
|
|
646
|
-
|
|
481
|
+
"info": {
|
|
482
|
+
"type": "object",
|
|
483
|
+
"properties": {
|
|
484
|
+
"type": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"const": "submission",
|
|
487
|
+
"description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
|
|
488
|
+
},
|
|
489
|
+
"guard": {
|
|
490
|
+
"type": "array",
|
|
491
|
+
"items": {
|
|
492
|
+
"type": "object",
|
|
493
|
+
"properties": {
|
|
494
|
+
"object": {
|
|
495
|
+
"$ref": "#/definitions/data_gen_passport/properties/guard/anyOf/0",
|
|
496
|
+
"description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
|
|
497
|
+
},
|
|
498
|
+
"impack": {
|
|
499
|
+
"type": "boolean",
|
|
500
|
+
"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"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"required": [
|
|
504
|
+
"object",
|
|
505
|
+
"impack"
|
|
506
|
+
],
|
|
507
|
+
"additionalProperties": false
|
|
647
508
|
},
|
|
648
|
-
"
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
"
|
|
665
|
-
{
|
|
666
|
-
"type": "
|
|
667
|
-
"
|
|
668
|
-
"
|
|
509
|
+
"maxItems": 20,
|
|
510
|
+
"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."
|
|
511
|
+
},
|
|
512
|
+
"submission": {
|
|
513
|
+
"type": "array",
|
|
514
|
+
"items": {
|
|
515
|
+
"type": "object",
|
|
516
|
+
"properties": {
|
|
517
|
+
"guard": {
|
|
518
|
+
"$ref": "#/definitions/data_gen_passport/properties/guard/anyOf/0",
|
|
519
|
+
"description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
|
|
520
|
+
},
|
|
521
|
+
"submission": {
|
|
522
|
+
"type": "array",
|
|
523
|
+
"items": {
|
|
524
|
+
"type": "object",
|
|
525
|
+
"properties": {
|
|
526
|
+
"identifier": {
|
|
527
|
+
"type": "integer",
|
|
528
|
+
"minimum": 0,
|
|
529
|
+
"maximum": 255,
|
|
530
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
669
531
|
},
|
|
670
|
-
{
|
|
671
|
-
"type": "
|
|
672
|
-
"
|
|
673
|
-
"description": "Address (1)"
|
|
532
|
+
"b_submission": {
|
|
533
|
+
"type": "boolean",
|
|
534
|
+
"description": "Whether user submission is required for this data"
|
|
674
535
|
},
|
|
675
|
-
{
|
|
676
|
-
"
|
|
677
|
-
|
|
678
|
-
|
|
536
|
+
"value_type": {
|
|
537
|
+
"anyOf": [
|
|
538
|
+
{
|
|
539
|
+
"type": "number",
|
|
540
|
+
"const": 0,
|
|
541
|
+
"description": "Bool (0)"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"type": "number",
|
|
545
|
+
"const": 1,
|
|
546
|
+
"description": "Address (1)"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"type": "number",
|
|
550
|
+
"const": 2,
|
|
551
|
+
"description": "String (2)"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"type": "number",
|
|
555
|
+
"const": 3,
|
|
556
|
+
"description": "U8 (3)"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"type": "number",
|
|
560
|
+
"const": 4,
|
|
561
|
+
"description": "U16 (4)"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"type": "number",
|
|
565
|
+
"const": 5,
|
|
566
|
+
"description": "U32 (5)"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"type": "number",
|
|
570
|
+
"const": 6,
|
|
571
|
+
"description": "U64 (6)"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"type": "number",
|
|
575
|
+
"const": 7,
|
|
576
|
+
"description": "U128 (7)"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"type": "number",
|
|
580
|
+
"const": 8,
|
|
581
|
+
"description": "U256 (8)"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"type": "number",
|
|
585
|
+
"const": 9,
|
|
586
|
+
"description": "VecBool (9)"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"type": "number",
|
|
590
|
+
"const": 10,
|
|
591
|
+
"description": "VecAddress (10)"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"type": "number",
|
|
595
|
+
"const": 11,
|
|
596
|
+
"description": "VecString (11)"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"type": "number",
|
|
600
|
+
"const": 12,
|
|
601
|
+
"description": "VecU8 (12)"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"type": "number",
|
|
605
|
+
"const": 13,
|
|
606
|
+
"description": "VecU16 (13)"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"type": "number",
|
|
610
|
+
"const": 14,
|
|
611
|
+
"description": "VecU32 (14)"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"type": "number",
|
|
615
|
+
"const": 15,
|
|
616
|
+
"description": "VecU64 (15)"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"type": "number",
|
|
620
|
+
"const": 16,
|
|
621
|
+
"description": "VecU128 (16)"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"type": "number",
|
|
625
|
+
"const": 17,
|
|
626
|
+
"description": "VecU256 (17)"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"type": "number",
|
|
630
|
+
"const": 18,
|
|
631
|
+
"description": "VecVecU8 (18)"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"type": "string",
|
|
635
|
+
"const": "Bool",
|
|
636
|
+
"description": "Bool"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"type": "string",
|
|
640
|
+
"const": "Address",
|
|
641
|
+
"description": "Address"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"type": "string",
|
|
645
|
+
"const": "String",
|
|
646
|
+
"description": "String"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"type": "string",
|
|
650
|
+
"const": "U8",
|
|
651
|
+
"description": "U8"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"type": "string",
|
|
655
|
+
"const": "U16",
|
|
656
|
+
"description": "U16"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"type": "string",
|
|
660
|
+
"const": "U32",
|
|
661
|
+
"description": "U32"
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"type": "string",
|
|
665
|
+
"const": "U64",
|
|
666
|
+
"description": "U64"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"type": "string",
|
|
670
|
+
"const": "U128",
|
|
671
|
+
"description": "U128"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"type": "string",
|
|
675
|
+
"const": "U256",
|
|
676
|
+
"description": "U256"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"type": "string",
|
|
680
|
+
"const": "VecBool",
|
|
681
|
+
"description": "VecBool"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"type": "string",
|
|
685
|
+
"const": "VecAddress",
|
|
686
|
+
"description": "VecAddress"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"type": "string",
|
|
690
|
+
"const": "VecString",
|
|
691
|
+
"description": "VecString"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"type": "string",
|
|
695
|
+
"const": "VecU8",
|
|
696
|
+
"description": "VecU8"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"type": "string",
|
|
700
|
+
"const": "VecU16",
|
|
701
|
+
"description": "VecU16"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"type": "string",
|
|
705
|
+
"const": "VecU32",
|
|
706
|
+
"description": "VecU32"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"type": "string",
|
|
710
|
+
"const": "VecU64",
|
|
711
|
+
"description": "VecU64"
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"type": "string",
|
|
715
|
+
"const": "VecU128",
|
|
716
|
+
"description": "VecU128"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"type": "string",
|
|
720
|
+
"const": "VecU256",
|
|
721
|
+
"description": "VecU256"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"type": "string",
|
|
725
|
+
"const": "VecVecU8",
|
|
726
|
+
"description": "VecVecU8"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"type": "string",
|
|
730
|
+
"const": "bool",
|
|
731
|
+
"description": "bool"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"type": "string",
|
|
735
|
+
"const": "address",
|
|
736
|
+
"description": "address"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"type": "string",
|
|
740
|
+
"const": "string",
|
|
741
|
+
"description": "string"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"type": "string",
|
|
745
|
+
"const": "u8",
|
|
746
|
+
"description": "u8"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"type": "string",
|
|
750
|
+
"const": "u16",
|
|
751
|
+
"description": "u16"
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"type": "string",
|
|
755
|
+
"const": "u32",
|
|
756
|
+
"description": "u32"
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"type": "string",
|
|
760
|
+
"const": "u64",
|
|
761
|
+
"description": "u64"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"type": "string",
|
|
765
|
+
"const": "u128",
|
|
766
|
+
"description": "u128"
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"type": "string",
|
|
770
|
+
"const": "u256",
|
|
771
|
+
"description": "u256"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"type": "string",
|
|
775
|
+
"const": "vecbool",
|
|
776
|
+
"description": "vecbool"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"type": "string",
|
|
780
|
+
"const": "vecaddress",
|
|
781
|
+
"description": "vecaddress"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"type": "string",
|
|
785
|
+
"const": "vecstring",
|
|
786
|
+
"description": "vecstring"
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"type": "string",
|
|
790
|
+
"const": "vecu8",
|
|
791
|
+
"description": "vecu8"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"type": "string",
|
|
795
|
+
"const": "vecu16",
|
|
796
|
+
"description": "vecu16"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"type": "string",
|
|
800
|
+
"const": "vecu32",
|
|
801
|
+
"description": "vecu32"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"type": "string",
|
|
805
|
+
"const": "vecu64",
|
|
806
|
+
"description": "vecu64"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"type": "string",
|
|
810
|
+
"const": "vecu128",
|
|
811
|
+
"description": "vecu128"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"type": "string",
|
|
815
|
+
"const": "vecu256",
|
|
816
|
+
"description": "vecu256"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"type": "string",
|
|
820
|
+
"const": "vecvecu8",
|
|
821
|
+
"description": "vecvecu8"
|
|
822
|
+
}
|
|
823
|
+
],
|
|
824
|
+
"description": "Type of the value"
|
|
825
|
+
},
|
|
826
|
+
"value": {
|
|
827
|
+
"anyOf": [
|
|
828
|
+
{
|
|
829
|
+
"type": "boolean"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"anyOf": [
|
|
833
|
+
{
|
|
834
|
+
"type": "object",
|
|
835
|
+
"properties": {
|
|
836
|
+
"name_or_address": {
|
|
837
|
+
"$ref": "#/definitions/data_gen_passport/properties/guard/anyOf/0",
|
|
838
|
+
"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)."
|
|
839
|
+
},
|
|
840
|
+
"local_mark_first": {
|
|
841
|
+
"type": "boolean",
|
|
842
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
"additionalProperties": false,
|
|
846
|
+
"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."
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"type": "string"
|
|
850
|
+
}
|
|
851
|
+
]
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"type": "string"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"type": "number"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"type": "array",
|
|
861
|
+
"items": {
|
|
862
|
+
"type": "boolean"
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"anyOf": [
|
|
867
|
+
{
|
|
868
|
+
"type": "object",
|
|
869
|
+
"properties": {
|
|
870
|
+
"entities": {
|
|
871
|
+
"type": "array",
|
|
872
|
+
"items": {
|
|
873
|
+
"$ref": "#/definitions/data_gen_passport/properties/info/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
"check_all_founded": {
|
|
877
|
+
"type": "boolean",
|
|
878
|
+
"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"
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
"required": [
|
|
882
|
+
"entities"
|
|
883
|
+
],
|
|
884
|
+
"additionalProperties": false,
|
|
885
|
+
"description": "Used to batch find account or object IDs by name"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"type": "array",
|
|
889
|
+
"items": {
|
|
890
|
+
"type": "string"
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
]
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"type": "array",
|
|
897
|
+
"items": {
|
|
898
|
+
"type": "string"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"type": "array",
|
|
903
|
+
"items": {
|
|
904
|
+
"type": "number"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"type": "array",
|
|
909
|
+
"items": {
|
|
910
|
+
"type": "array",
|
|
911
|
+
"items": {
|
|
912
|
+
"type": "number"
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
],
|
|
917
|
+
"description": "The actual value data"
|
|
918
|
+
},
|
|
919
|
+
"name": {
|
|
920
|
+
"type": "string",
|
|
921
|
+
"default": "",
|
|
922
|
+
"description": "Name or description of this data"
|
|
923
|
+
},
|
|
924
|
+
"object_type": {
|
|
925
|
+
"type": "string",
|
|
926
|
+
"enum": [
|
|
927
|
+
"Permission",
|
|
928
|
+
"Repository",
|
|
929
|
+
"Arb",
|
|
930
|
+
"Arbitration",
|
|
931
|
+
"Service",
|
|
932
|
+
"Machine",
|
|
933
|
+
"Order",
|
|
934
|
+
"Progress",
|
|
935
|
+
"Payment",
|
|
936
|
+
"Treasury",
|
|
937
|
+
"Guard",
|
|
938
|
+
"Demand",
|
|
939
|
+
"Passport",
|
|
940
|
+
"Allocation",
|
|
941
|
+
"Resource",
|
|
942
|
+
"Reward",
|
|
943
|
+
"Discount",
|
|
944
|
+
"EntityRegistrar",
|
|
945
|
+
"EntityLinker",
|
|
946
|
+
"Proof",
|
|
947
|
+
"WReceivedObject",
|
|
948
|
+
"Contact",
|
|
949
|
+
"TableItem_ProgressHistory",
|
|
950
|
+
"TableItem_PermissionPerm",
|
|
951
|
+
"TableItem_DemandPresenter",
|
|
952
|
+
"TableItem_MachineNode",
|
|
953
|
+
"TableItem_TreasuryHistory",
|
|
954
|
+
"TableItem_RepositoryData",
|
|
955
|
+
"TableItem_RewardRecord",
|
|
956
|
+
"TableItem_EntityLinker",
|
|
957
|
+
"TableItem_AddressMark",
|
|
958
|
+
"TableItem_EntityRegistrar"
|
|
959
|
+
],
|
|
960
|
+
"description": "Object type when value_type is Address and represents a specific object"
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
"required": [
|
|
964
|
+
"identifier",
|
|
965
|
+
"b_submission",
|
|
966
|
+
"value_type"
|
|
967
|
+
],
|
|
968
|
+
"additionalProperties": false,
|
|
969
|
+
"description": "Guard table item"
|
|
970
|
+
},
|
|
971
|
+
"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...'}]"
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
"required": [
|
|
975
|
+
"guard",
|
|
976
|
+
"submission"
|
|
977
|
+
],
|
|
978
|
+
"additionalProperties": false,
|
|
979
|
+
"description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
|
|
980
|
+
},
|
|
981
|
+
"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."
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
"required": [
|
|
985
|
+
"type",
|
|
986
|
+
"guard",
|
|
987
|
+
"submission"
|
|
988
|
+
],
|
|
989
|
+
"additionalProperties": false,
|
|
990
|
+
"description": "Optional submission data. If not provided, will attempt to get existing submissions from the guard."
|
|
991
|
+
},
|
|
992
|
+
"env": {
|
|
993
|
+
"type": "object",
|
|
994
|
+
"properties": {
|
|
995
|
+
"account": {
|
|
996
|
+
"$ref": "#/definitions/data_gen_passport/properties/guard/anyOf/0",
|
|
997
|
+
"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).",
|
|
998
|
+
"default": ""
|
|
999
|
+
},
|
|
1000
|
+
"permission_guard": {
|
|
1001
|
+
"type": "array",
|
|
1002
|
+
"items": {
|
|
1003
|
+
"type": "string"
|
|
1004
|
+
},
|
|
1005
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
1006
|
+
},
|
|
1007
|
+
"no_cache": {
|
|
1008
|
+
"type": "boolean",
|
|
1009
|
+
"description": "Whether to disable caching."
|
|
1010
|
+
},
|
|
1011
|
+
"network": {
|
|
1012
|
+
"type": "string",
|
|
1013
|
+
"enum": [
|
|
1014
|
+
"localnet",
|
|
1015
|
+
"testnet",
|
|
1016
|
+
"mainnet"
|
|
1017
|
+
],
|
|
1018
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
1019
|
+
},
|
|
1020
|
+
"referrer": {
|
|
1021
|
+
"$ref": "#/definitions/data_gen_passport/properties/guard/anyOf/0",
|
|
1022
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
1023
|
+
},
|
|
1024
|
+
"confirmed": {
|
|
1025
|
+
"type": "boolean",
|
|
1026
|
+
"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."
|
|
1027
|
+
},
|
|
1028
|
+
"user_intent_phrases": {
|
|
1029
|
+
"type": "array",
|
|
1030
|
+
"items": {
|
|
1031
|
+
"type": "string"
|
|
1032
|
+
},
|
|
1033
|
+
"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."
|
|
1034
|
+
},
|
|
1035
|
+
"project": {
|
|
1036
|
+
"type": "string",
|
|
1037
|
+
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
1038
|
+
},
|
|
1039
|
+
"client_schema_version": {
|
|
1040
|
+
"type": "string",
|
|
1041
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
1042
|
+
},
|
|
1043
|
+
"schema_strict_mode": {
|
|
1044
|
+
"type": "boolean",
|
|
1045
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
"additionalProperties": false,
|
|
1049
|
+
"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."
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
"required": [
|
|
1053
|
+
"operation_type",
|
|
1054
|
+
"guard"
|
|
1055
|
+
],
|
|
1056
|
+
"additionalProperties": false
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
"type": "object",
|
|
1060
|
+
"title": "Proof Object",
|
|
1061
|
+
"description": "Create immutable on-chain proof objects",
|
|
1062
|
+
"properties": {
|
|
1063
|
+
"operation_type": {
|
|
1064
|
+
"const": "proof"
|
|
1065
|
+
},
|
|
1066
|
+
"data": {
|
|
1067
|
+
"$ref": "#/definitions/data_proof",
|
|
1068
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1069
|
+
},
|
|
1070
|
+
"env": {
|
|
1071
|
+
"$ref": "#/definitions/env",
|
|
1072
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1073
|
+
},
|
|
1074
|
+
"submission": {
|
|
1075
|
+
"$ref": "#/definitions/submission",
|
|
1076
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
"required": [
|
|
1080
|
+
"operation_type",
|
|
1081
|
+
"data"
|
|
1082
|
+
]
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"type": "object",
|
|
1086
|
+
"title": "Generate Proof",
|
|
1087
|
+
"description": "Generate a new Proof object on-chain (convenience function)",
|
|
1088
|
+
"properties": {
|
|
1089
|
+
"operation_type": {
|
|
1090
|
+
"const": "gen_proof"
|
|
1091
|
+
},
|
|
1092
|
+
"proof": {
|
|
1093
|
+
"type": "string",
|
|
1094
|
+
"maxLength": 10240,
|
|
1095
|
+
"description": "Proof content. e.g. merkle tree root"
|
|
1096
|
+
},
|
|
1097
|
+
"server_pubkey": {
|
|
1098
|
+
"type": "string",
|
|
1099
|
+
"maxLength": 2048,
|
|
1100
|
+
"description": "Server public key"
|
|
1101
|
+
},
|
|
1102
|
+
"server_signature": {
|
|
1103
|
+
"type": "string",
|
|
1104
|
+
"maxLength": 40480,
|
|
1105
|
+
"description": "Server signature"
|
|
1106
|
+
},
|
|
1107
|
+
"proof_type": {
|
|
1108
|
+
"anyOf": [
|
|
1109
|
+
{
|
|
1110
|
+
"type": "integer",
|
|
1111
|
+
"minimum": 1
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
"type": "string",
|
|
1115
|
+
"pattern": "^\\d+$"
|
|
1116
|
+
}
|
|
1117
|
+
],
|
|
1118
|
+
"description": "Proof type. 1: WOWOK_WTS_PROOF_TYPE (WTS proof); 1-100 reserved for Wowok; user-defined must be > 100. Numeric string accepted."
|
|
1119
|
+
},
|
|
1120
|
+
"description": {
|
|
1121
|
+
"type": "string",
|
|
1122
|
+
"description": "Human-readable description of this Proof. Required field."
|
|
1123
|
+
},
|
|
1124
|
+
"item_count": {
|
|
1125
|
+
"anyOf": [
|
|
1126
|
+
{
|
|
1127
|
+
"type": "integer",
|
|
1128
|
+
"minimum": 0
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"type": "string"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"type": "null"
|
|
1135
|
+
}
|
|
1136
|
+
],
|
|
1137
|
+
"description": "Item count. e.g. number of items in the merkle tree"
|
|
1138
|
+
},
|
|
1139
|
+
"about_address": {
|
|
1140
|
+
"anyOf": [
|
|
1141
|
+
{
|
|
1142
|
+
"type": "string",
|
|
1143
|
+
"description": "Valid ID: 0x prefix + 64 hex characters, or builtin ID (0x5-0x9, 0xa, 0xc, 0xd, 0x403, 0xaaa, 0xaab, 0xacc)"
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"type": "null"
|
|
1147
|
+
}
|
|
1148
|
+
],
|
|
1149
|
+
"description": "About address. Accepts null/undefined (→ Move Option::none). When provided, must be a raw 0x-prefixed address (NOT a name)."
|
|
1150
|
+
},
|
|
1151
|
+
"env": {
|
|
1152
|
+
"type": "object",
|
|
1153
|
+
"properties": {
|
|
1154
|
+
"account": {
|
|
1155
|
+
"type": "string",
|
|
1156
|
+
"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).",
|
|
1157
|
+
"default": ""
|
|
1158
|
+
},
|
|
1159
|
+
"permission_guard": {
|
|
1160
|
+
"type": "array",
|
|
1161
|
+
"items": {
|
|
1162
|
+
"type": "string"
|
|
1163
|
+
},
|
|
1164
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
1165
|
+
},
|
|
1166
|
+
"no_cache": {
|
|
1167
|
+
"type": "boolean",
|
|
1168
|
+
"description": "Whether to disable caching."
|
|
1169
|
+
},
|
|
1170
|
+
"network": {
|
|
1171
|
+
"type": "string",
|
|
1172
|
+
"enum": [
|
|
1173
|
+
"localnet",
|
|
1174
|
+
"testnet",
|
|
1175
|
+
"mainnet"
|
|
1176
|
+
],
|
|
1177
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
1178
|
+
},
|
|
1179
|
+
"referrer": {
|
|
1180
|
+
"$ref": "#/definitions/data_gen_proof/properties/env/properties/account",
|
|
1181
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
1182
|
+
},
|
|
1183
|
+
"confirmed": {
|
|
1184
|
+
"type": "boolean",
|
|
1185
|
+
"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."
|
|
1186
|
+
},
|
|
1187
|
+
"user_intent_phrases": {
|
|
1188
|
+
"type": "array",
|
|
1189
|
+
"items": {
|
|
1190
|
+
"type": "string"
|
|
1191
|
+
},
|
|
1192
|
+
"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."
|
|
1193
|
+
},
|
|
1194
|
+
"project": {
|
|
1195
|
+
"type": "string",
|
|
1196
|
+
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
1197
|
+
},
|
|
1198
|
+
"client_schema_version": {
|
|
1199
|
+
"type": "string",
|
|
1200
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
1201
|
+
},
|
|
1202
|
+
"schema_strict_mode": {
|
|
1203
|
+
"type": "boolean",
|
|
1204
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
"additionalProperties": false,
|
|
1208
|
+
"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."
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
"required": [
|
|
1212
|
+
"operation_type",
|
|
1213
|
+
"proof",
|
|
1214
|
+
"server_pubkey",
|
|
1215
|
+
"server_signature",
|
|
1216
|
+
"proof_type",
|
|
1217
|
+
"description"
|
|
1218
|
+
],
|
|
1219
|
+
"additionalProperties": false
|
|
1220
|
+
}
|
|
1221
|
+
],
|
|
1222
|
+
"definitions": {
|
|
1223
|
+
"env": {
|
|
1224
|
+
"type": "object",
|
|
1225
|
+
"properties": {
|
|
1226
|
+
"account": {
|
|
1227
|
+
"type": "string",
|
|
1228
|
+
"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).",
|
|
1229
|
+
"default": ""
|
|
1230
|
+
},
|
|
1231
|
+
"permission_guard": {
|
|
1232
|
+
"type": "array",
|
|
1233
|
+
"items": {
|
|
1234
|
+
"type": "string"
|
|
1235
|
+
},
|
|
1236
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
1237
|
+
},
|
|
1238
|
+
"no_cache": {
|
|
1239
|
+
"type": "boolean",
|
|
1240
|
+
"description": "Whether to disable caching."
|
|
1241
|
+
},
|
|
1242
|
+
"network": {
|
|
1243
|
+
"type": "string",
|
|
1244
|
+
"enum": [
|
|
1245
|
+
"localnet",
|
|
1246
|
+
"testnet",
|
|
1247
|
+
"mainnet"
|
|
1248
|
+
],
|
|
1249
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
1250
|
+
},
|
|
1251
|
+
"referrer": {
|
|
1252
|
+
"$ref": "#/definitions/env/properties/account",
|
|
1253
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
1254
|
+
},
|
|
1255
|
+
"confirmed": {
|
|
1256
|
+
"type": "boolean",
|
|
1257
|
+
"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."
|
|
1258
|
+
},
|
|
1259
|
+
"user_intent_phrases": {
|
|
1260
|
+
"type": "array",
|
|
1261
|
+
"items": {
|
|
1262
|
+
"type": "string"
|
|
1263
|
+
},
|
|
1264
|
+
"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."
|
|
1265
|
+
},
|
|
1266
|
+
"project": {
|
|
1267
|
+
"type": "string",
|
|
1268
|
+
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
1269
|
+
},
|
|
1270
|
+
"client_schema_version": {
|
|
1271
|
+
"type": "string",
|
|
1272
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
1273
|
+
},
|
|
1274
|
+
"schema_strict_mode": {
|
|
1275
|
+
"type": "boolean",
|
|
1276
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
"additionalProperties": false,
|
|
1280
|
+
"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."
|
|
1281
|
+
},
|
|
1282
|
+
"submission": {
|
|
1283
|
+
"type": "object",
|
|
1284
|
+
"properties": {
|
|
1285
|
+
"type": {
|
|
1286
|
+
"type": "string",
|
|
1287
|
+
"const": "submission",
|
|
1288
|
+
"description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
|
|
1289
|
+
},
|
|
1290
|
+
"guard": {
|
|
1291
|
+
"type": "array",
|
|
1292
|
+
"items": {
|
|
1293
|
+
"type": "object",
|
|
1294
|
+
"properties": {
|
|
1295
|
+
"object": {
|
|
1296
|
+
"type": "string",
|
|
1297
|
+
"description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
|
|
1298
|
+
},
|
|
1299
|
+
"impack": {
|
|
1300
|
+
"type": "boolean",
|
|
1301
|
+
"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"
|
|
1302
|
+
}
|
|
1303
|
+
},
|
|
1304
|
+
"required": [
|
|
1305
|
+
"object",
|
|
1306
|
+
"impack"
|
|
1307
|
+
],
|
|
1308
|
+
"additionalProperties": false
|
|
1309
|
+
},
|
|
1310
|
+
"maxItems": 20,
|
|
1311
|
+
"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."
|
|
1312
|
+
},
|
|
1313
|
+
"submission": {
|
|
1314
|
+
"type": "array",
|
|
1315
|
+
"items": {
|
|
1316
|
+
"type": "object",
|
|
1317
|
+
"properties": {
|
|
1318
|
+
"guard": {
|
|
1319
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
1320
|
+
"description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
|
|
1321
|
+
},
|
|
1322
|
+
"submission": {
|
|
1323
|
+
"type": "array",
|
|
1324
|
+
"items": {
|
|
1325
|
+
"type": "object",
|
|
1326
|
+
"properties": {
|
|
1327
|
+
"identifier": {
|
|
1328
|
+
"type": "integer",
|
|
1329
|
+
"minimum": 0,
|
|
1330
|
+
"maximum": 255,
|
|
1331
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
1332
|
+
},
|
|
1333
|
+
"b_submission": {
|
|
1334
|
+
"type": "boolean",
|
|
1335
|
+
"description": "Whether user submission is required for this data"
|
|
1336
|
+
},
|
|
1337
|
+
"value_type": {
|
|
1338
|
+
"anyOf": [
|
|
1339
|
+
{
|
|
1340
|
+
"type": "number",
|
|
1341
|
+
"const": 0,
|
|
1342
|
+
"description": "Bool (0)"
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
"type": "number",
|
|
1346
|
+
"const": 1,
|
|
1347
|
+
"description": "Address (1)"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
"type": "number",
|
|
1351
|
+
"const": 2,
|
|
1352
|
+
"description": "String (2)"
|
|
679
1353
|
},
|
|
680
1354
|
{
|
|
681
1355
|
"type": "number",
|
|
@@ -1676,10 +2350,8 @@
|
|
|
1676
2350
|
"description": "Description of fund allocator list"
|
|
1677
2351
|
},
|
|
1678
2352
|
"threshold": {
|
|
1679
|
-
"
|
|
1680
|
-
|
|
1681
|
-
"string"
|
|
1682
|
-
],
|
|
2353
|
+
"$ref": "#/definitions/data_service/properties/order_new/properties/buy/properties/total_pay/anyOf/0/properties/balance",
|
|
2354
|
+
"default": 0,
|
|
1683
2355
|
"description": "Threshold. If defined, fund allocation will be triggered when amount in Allocation object reaches this threshold."
|
|
1684
2356
|
},
|
|
1685
2357
|
"allocators": {
|
|
@@ -1799,7 +2471,6 @@
|
|
|
1799
2471
|
},
|
|
1800
2472
|
"required": [
|
|
1801
2473
|
"description",
|
|
1802
|
-
"threshold",
|
|
1803
2474
|
"allocators"
|
|
1804
2475
|
],
|
|
1805
2476
|
"additionalProperties": false,
|
|
@@ -2226,6 +2897,7 @@
|
|
|
2226
2897
|
"number",
|
|
2227
2898
|
"string"
|
|
2228
2899
|
],
|
|
2900
|
+
"default": 0,
|
|
2229
2901
|
"description": "Threshold to trigger node advancement. If total Forward weight is greater than or equal to threshold, node advancement is triggered."
|
|
2230
2902
|
},
|
|
2231
2903
|
"forwards": {
|
|
@@ -2289,10 +2961,7 @@
|
|
|
2289
2961
|
{
|
|
2290
2962
|
"type": "array",
|
|
2291
2963
|
"items": {
|
|
2292
|
-
"
|
|
2293
|
-
"number",
|
|
2294
|
-
"string"
|
|
2295
|
-
]
|
|
2964
|
+
"$ref": "#/definitions/data_machine/properties/node/anyOf/0/anyOf/0/properties/nodes/items/properties/pairs/items/properties/threshold"
|
|
2296
2965
|
}
|
|
2297
2966
|
},
|
|
2298
2967
|
{
|
|
@@ -2327,7 +2996,6 @@
|
|
|
2327
2996
|
},
|
|
2328
2997
|
"required": [
|
|
2329
2998
|
"prev_node",
|
|
2330
|
-
"threshold",
|
|
2331
2999
|
"forwards"
|
|
2332
3000
|
],
|
|
2333
3001
|
"additionalProperties": false,
|
|
@@ -2891,13 +3559,15 @@
|
|
|
2891
3559
|
"additionalProperties": false,
|
|
2892
3560
|
"description": "Specify a specific operation between current node and next node."
|
|
2893
3561
|
},
|
|
2894
|
-
"
|
|
2895
|
-
"type": "
|
|
2896
|
-
"
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
3562
|
+
"op": {
|
|
3563
|
+
"type": "string",
|
|
3564
|
+
"enum": [
|
|
3565
|
+
"next",
|
|
3566
|
+
"hold",
|
|
3567
|
+
"unhold",
|
|
3568
|
+
"adminUnhold"
|
|
3569
|
+
],
|
|
3570
|
+
"description": "Operation type on the forward: 'next' = advance the forward (accomplish); 'hold' = set hold to block the forward; 'unhold' = self-unhold, release own hold (no 224 permission needed); 'adminUnhold' = force-release hold via 224 permission (PROGRESS_UNHOLD)."
|
|
2901
3571
|
},
|
|
2902
3572
|
"message": {
|
|
2903
3573
|
"type": "string",
|
|
@@ -2905,10 +3575,11 @@
|
|
|
2905
3575
|
}
|
|
2906
3576
|
},
|
|
2907
3577
|
"required": [
|
|
2908
|
-
"operation"
|
|
3578
|
+
"operation",
|
|
3579
|
+
"op"
|
|
2909
3580
|
],
|
|
2910
3581
|
"additionalProperties": false,
|
|
2911
|
-
"description": "Advance Progress object.
|
|
3582
|
+
"description": "Advance Progress object. op field selects the operation: next/hold/unhold/adminUnhold."
|
|
2912
3583
|
}
|
|
2913
3584
|
},
|
|
2914
3585
|
"required": [
|
|
@@ -5804,7 +6475,8 @@
|
|
|
5804
6475
|
"number",
|
|
5805
6476
|
"string"
|
|
5806
6477
|
],
|
|
5807
|
-
"description": "Threshold. If defined, fund allocation will be triggered when amount in Allocation object reaches this threshold."
|
|
6478
|
+
"description": "Threshold. If defined, fund allocation will be triggered when amount in Allocation object reaches this threshold.",
|
|
6479
|
+
"default": 0
|
|
5808
6480
|
},
|
|
5809
6481
|
"allocators": {
|
|
5810
6482
|
"type": "array",
|
|
@@ -5908,16 +6580,13 @@
|
|
|
5908
6580
|
"description": "Fund allocation item list. Each item represents a recipient and their corresponding reward allocation value."
|
|
5909
6581
|
},
|
|
5910
6582
|
"fix": {
|
|
5911
|
-
"
|
|
5912
|
-
"number",
|
|
5913
|
-
"string"
|
|
5914
|
-
],
|
|
6583
|
+
"$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/threshold",
|
|
5915
6584
|
"description": "Fixed allocation amount. If specified, all recipients will receive the fixed allocation amount."
|
|
5916
6585
|
},
|
|
5917
6586
|
"max": {
|
|
5918
6587
|
"anyOf": [
|
|
5919
6588
|
{
|
|
5920
|
-
"$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/
|
|
6589
|
+
"$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/threshold"
|
|
5921
6590
|
},
|
|
5922
6591
|
{
|
|
5923
6592
|
"type": "null"
|
|
@@ -5938,7 +6607,6 @@
|
|
|
5938
6607
|
},
|
|
5939
6608
|
"required": [
|
|
5940
6609
|
"description",
|
|
5941
|
-
"threshold",
|
|
5942
6610
|
"allocators"
|
|
5943
6611
|
],
|
|
5944
6612
|
"additionalProperties": false,
|
|
@@ -5950,7 +6618,7 @@
|
|
|
5950
6618
|
"type": "object",
|
|
5951
6619
|
"properties": {
|
|
5952
6620
|
"balance": {
|
|
5953
|
-
"$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/
|
|
6621
|
+
"$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/threshold"
|
|
5954
6622
|
}
|
|
5955
6623
|
},
|
|
5956
6624
|
"required": [
|
|
@@ -6034,7 +6702,7 @@
|
|
|
6034
6702
|
"type": "object",
|
|
6035
6703
|
"properties": {
|
|
6036
6704
|
"balance": {
|
|
6037
|
-
"$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/
|
|
6705
|
+
"$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/threshold"
|
|
6038
6706
|
},
|
|
6039
6707
|
"token_type": {
|
|
6040
6708
|
"type": "string",
|
|
@@ -6050,7 +6718,7 @@
|
|
|
6050
6718
|
"description": "Received CoinWrapper object ID"
|
|
6051
6719
|
},
|
|
6052
6720
|
"balance": {
|
|
6053
|
-
"$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/
|
|
6721
|
+
"$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/threshold"
|
|
6054
6722
|
},
|
|
6055
6723
|
"payment": {
|
|
6056
6724
|
"type": "string",
|
|
@@ -6520,97 +7188,674 @@
|
|
|
6520
7188
|
"properties": {
|
|
6521
7189
|
"id": {
|
|
6522
7190
|
"type": "string",
|
|
6523
|
-
"minLength": 1,
|
|
6524
|
-
"description": "Received object ID"
|
|
7191
|
+
"minLength": 1,
|
|
7192
|
+
"description": "Received object ID"
|
|
7193
|
+
},
|
|
7194
|
+
"type": {
|
|
7195
|
+
"type": "string",
|
|
7196
|
+
"minLength": 1,
|
|
7197
|
+
"description": "Object type"
|
|
7198
|
+
},
|
|
7199
|
+
"content_raw": {
|
|
7200
|
+
"description": "Raw content data"
|
|
7201
|
+
}
|
|
7202
|
+
},
|
|
7203
|
+
"required": [
|
|
7204
|
+
"id",
|
|
7205
|
+
"type"
|
|
7206
|
+
],
|
|
7207
|
+
"additionalProperties": false,
|
|
7208
|
+
"description": "Received normal object record"
|
|
7209
|
+
}
|
|
7210
|
+
},
|
|
7211
|
+
{
|
|
7212
|
+
"type": "object",
|
|
7213
|
+
"properties": {
|
|
7214
|
+
"balance": {
|
|
7215
|
+
"type": [
|
|
7216
|
+
"number",
|
|
7217
|
+
"string"
|
|
7218
|
+
],
|
|
7219
|
+
"description": "Balance type"
|
|
7220
|
+
},
|
|
7221
|
+
"token_type": {
|
|
7222
|
+
"type": "string",
|
|
7223
|
+
"description": "Asset type of Coin objects. Supports CoinWrapper<...> format for order receive operations."
|
|
7224
|
+
},
|
|
7225
|
+
"received": {
|
|
7226
|
+
"type": "array",
|
|
7227
|
+
"items": {
|
|
7228
|
+
"type": "object",
|
|
7229
|
+
"properties": {
|
|
7230
|
+
"id": {
|
|
7231
|
+
"type": "string",
|
|
7232
|
+
"description": "Received CoinWrapper object ID"
|
|
7233
|
+
},
|
|
7234
|
+
"balance": {
|
|
7235
|
+
"$ref": "#/definitions/data_permission/properties/owner_receive/anyOf/1/properties/balance"
|
|
7236
|
+
},
|
|
7237
|
+
"payment": {
|
|
7238
|
+
"type": "string",
|
|
7239
|
+
"description": "Payment object ID"
|
|
7240
|
+
}
|
|
7241
|
+
},
|
|
7242
|
+
"required": [
|
|
7243
|
+
"id",
|
|
7244
|
+
"balance",
|
|
7245
|
+
"payment"
|
|
7246
|
+
],
|
|
7247
|
+
"additionalProperties": false,
|
|
7248
|
+
"description": "Received CoinWrapper object record"
|
|
7249
|
+
},
|
|
7250
|
+
"description": "Received records of Coin objects"
|
|
7251
|
+
}
|
|
7252
|
+
},
|
|
7253
|
+
"required": [
|
|
7254
|
+
"balance",
|
|
7255
|
+
"token_type",
|
|
7256
|
+
"received"
|
|
7257
|
+
],
|
|
7258
|
+
"additionalProperties": false,
|
|
7259
|
+
"description": "Received record of Coin objects"
|
|
7260
|
+
},
|
|
7261
|
+
{
|
|
7262
|
+
"type": "string",
|
|
7263
|
+
"const": "recently"
|
|
7264
|
+
}
|
|
7265
|
+
],
|
|
7266
|
+
"description": "Unwrap CoinWrapper objects and other objects received by this object and send them to the builder(owner)."
|
|
7267
|
+
},
|
|
7268
|
+
"um": {
|
|
7269
|
+
"anyOf": [
|
|
7270
|
+
{
|
|
7271
|
+
"$ref": "#/definitions/data_permission/properties/table/anyOf/0/properties/entity/properties/entities/items/properties/name_or_address"
|
|
7272
|
+
},
|
|
7273
|
+
{
|
|
7274
|
+
"type": "null"
|
|
7275
|
+
}
|
|
7276
|
+
],
|
|
7277
|
+
"description": "Contact object ID or name."
|
|
7278
|
+
}
|
|
7279
|
+
},
|
|
7280
|
+
"additionalProperties": false,
|
|
7281
|
+
"description": "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."
|
|
7282
|
+
},
|
|
7283
|
+
"guard_namedNew": {
|
|
7284
|
+
"anyOf": [
|
|
7285
|
+
{
|
|
7286
|
+
"not": {}
|
|
7287
|
+
},
|
|
7288
|
+
{
|
|
7289
|
+
"type": "object",
|
|
7290
|
+
"properties": {
|
|
7291
|
+
"name": {
|
|
7292
|
+
"type": "string",
|
|
7293
|
+
"description": "The name of the object"
|
|
7294
|
+
},
|
|
7295
|
+
"tags": {
|
|
7296
|
+
"type": "array",
|
|
7297
|
+
"items": {
|
|
7298
|
+
"type": "string"
|
|
7299
|
+
},
|
|
7300
|
+
"description": "The tags of the object"
|
|
7301
|
+
},
|
|
7302
|
+
"onChain": {
|
|
7303
|
+
"type": "boolean",
|
|
7304
|
+
"description": "CRITICAL: Whether to sync the name to the blockchain. DEFAULT (undefined/false): The name is stored LOCALLY ONLY on your device (PRIVATE). If set to true: The name is published ON-CHAIN and becomes PUBLICLY VISIBLE to everyone. Only set to true for displaying the relationships you are willing to make public on the chain."
|
|
7305
|
+
},
|
|
7306
|
+
"replaceExistName": {
|
|
7307
|
+
"type": "boolean",
|
|
7308
|
+
"description": "FORCE CLAIM: Set to true ONLY when the user explicitly expresses a STRONG INTENTION to forcefully take over an existing name (e.g., 'I must use this name', 'force rename', 'replace the existing one'). WARNING: This will UNBIND the name from its original object and rebind it to the new one, potentially breaking existing references. If not specified or false: the operation will FAIL with an error when the name is already in use (safe default behavior)."
|
|
7309
|
+
}
|
|
7310
|
+
},
|
|
7311
|
+
"additionalProperties": false,
|
|
7312
|
+
"description": "Assign a name and optional tags to a new object. By default, names are stored LOCALLY (private) on your device. Set 'onChain: true' to create a PUBLIC on-chain identity visible to everyone. IMPORTANT: If the requested name is already taken, the operation will FAIL by default. Only set 'replaceExistName: true' when the user EXPLICITLY demands to forcefully claim the name."
|
|
7313
|
+
}
|
|
7314
|
+
],
|
|
7315
|
+
"description": "Name and optional tags for the new Guard object. Set 'onChain: true' to create a public on-chain identity. When using root.type='file', this field OVERRIDES namedNew in the file."
|
|
7316
|
+
},
|
|
7317
|
+
"guard_description": {
|
|
7318
|
+
"anyOf": [
|
|
7319
|
+
{
|
|
7320
|
+
"not": {}
|
|
7321
|
+
},
|
|
7322
|
+
{
|
|
7323
|
+
"type": "string",
|
|
7324
|
+
"description": "Description string (max 4000 bcs characters)"
|
|
7325
|
+
}
|
|
7326
|
+
],
|
|
7327
|
+
"description": "Guard description. When using root.type='file', this field OVERRIDES description in the file."
|
|
7328
|
+
},
|
|
7329
|
+
"guard_table": {
|
|
7330
|
+
"anyOf": [
|
|
7331
|
+
{
|
|
7332
|
+
"not": {}
|
|
7333
|
+
},
|
|
7334
|
+
{
|
|
7335
|
+
"type": "array",
|
|
7336
|
+
"items": {
|
|
7337
|
+
"type": "object",
|
|
7338
|
+
"properties": {
|
|
7339
|
+
"identifier": {
|
|
7340
|
+
"type": "integer",
|
|
7341
|
+
"minimum": 0,
|
|
7342
|
+
"maximum": 255,
|
|
7343
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
7344
|
+
},
|
|
7345
|
+
"b_submission": {
|
|
7346
|
+
"type": "boolean",
|
|
7347
|
+
"description": "Whether user submission is required for this data"
|
|
7348
|
+
},
|
|
7349
|
+
"value_type": {
|
|
7350
|
+
"anyOf": [
|
|
7351
|
+
{
|
|
7352
|
+
"type": "number",
|
|
7353
|
+
"const": 0,
|
|
7354
|
+
"description": "Bool (0)"
|
|
7355
|
+
},
|
|
7356
|
+
{
|
|
7357
|
+
"type": "number",
|
|
7358
|
+
"const": 1,
|
|
7359
|
+
"description": "Address (1)"
|
|
7360
|
+
},
|
|
7361
|
+
{
|
|
7362
|
+
"type": "number",
|
|
7363
|
+
"const": 2,
|
|
7364
|
+
"description": "String (2)"
|
|
7365
|
+
},
|
|
7366
|
+
{
|
|
7367
|
+
"type": "number",
|
|
7368
|
+
"const": 3,
|
|
7369
|
+
"description": "U8 (3)"
|
|
7370
|
+
},
|
|
7371
|
+
{
|
|
7372
|
+
"type": "number",
|
|
7373
|
+
"const": 4,
|
|
7374
|
+
"description": "U16 (4)"
|
|
7375
|
+
},
|
|
7376
|
+
{
|
|
7377
|
+
"type": "number",
|
|
7378
|
+
"const": 5,
|
|
7379
|
+
"description": "U32 (5)"
|
|
7380
|
+
},
|
|
7381
|
+
{
|
|
7382
|
+
"type": "number",
|
|
7383
|
+
"const": 6,
|
|
7384
|
+
"description": "U64 (6)"
|
|
7385
|
+
},
|
|
7386
|
+
{
|
|
7387
|
+
"type": "number",
|
|
7388
|
+
"const": 7,
|
|
7389
|
+
"description": "U128 (7)"
|
|
7390
|
+
},
|
|
7391
|
+
{
|
|
7392
|
+
"type": "number",
|
|
7393
|
+
"const": 8,
|
|
7394
|
+
"description": "U256 (8)"
|
|
7395
|
+
},
|
|
7396
|
+
{
|
|
7397
|
+
"type": "number",
|
|
7398
|
+
"const": 9,
|
|
7399
|
+
"description": "VecBool (9)"
|
|
7400
|
+
},
|
|
7401
|
+
{
|
|
7402
|
+
"type": "number",
|
|
7403
|
+
"const": 10,
|
|
7404
|
+
"description": "VecAddress (10)"
|
|
7405
|
+
},
|
|
7406
|
+
{
|
|
7407
|
+
"type": "number",
|
|
7408
|
+
"const": 11,
|
|
7409
|
+
"description": "VecString (11)"
|
|
7410
|
+
},
|
|
7411
|
+
{
|
|
7412
|
+
"type": "number",
|
|
7413
|
+
"const": 12,
|
|
7414
|
+
"description": "VecU8 (12)"
|
|
7415
|
+
},
|
|
7416
|
+
{
|
|
7417
|
+
"type": "number",
|
|
7418
|
+
"const": 13,
|
|
7419
|
+
"description": "VecU16 (13)"
|
|
7420
|
+
},
|
|
7421
|
+
{
|
|
7422
|
+
"type": "number",
|
|
7423
|
+
"const": 14,
|
|
7424
|
+
"description": "VecU32 (14)"
|
|
7425
|
+
},
|
|
7426
|
+
{
|
|
7427
|
+
"type": "number",
|
|
7428
|
+
"const": 15,
|
|
7429
|
+
"description": "VecU64 (15)"
|
|
7430
|
+
},
|
|
7431
|
+
{
|
|
7432
|
+
"type": "number",
|
|
7433
|
+
"const": 16,
|
|
7434
|
+
"description": "VecU128 (16)"
|
|
7435
|
+
},
|
|
7436
|
+
{
|
|
7437
|
+
"type": "number",
|
|
7438
|
+
"const": 17,
|
|
7439
|
+
"description": "VecU256 (17)"
|
|
7440
|
+
},
|
|
7441
|
+
{
|
|
7442
|
+
"type": "number",
|
|
7443
|
+
"const": 18,
|
|
7444
|
+
"description": "VecVecU8 (18)"
|
|
7445
|
+
},
|
|
7446
|
+
{
|
|
7447
|
+
"type": "string",
|
|
7448
|
+
"const": "Bool",
|
|
7449
|
+
"description": "Bool"
|
|
6525
7450
|
},
|
|
6526
|
-
|
|
7451
|
+
{
|
|
6527
7452
|
"type": "string",
|
|
6528
|
-
"
|
|
6529
|
-
"description": "
|
|
7453
|
+
"const": "Address",
|
|
7454
|
+
"description": "Address"
|
|
6530
7455
|
},
|
|
6531
|
-
|
|
6532
|
-
"
|
|
7456
|
+
{
|
|
7457
|
+
"type": "string",
|
|
7458
|
+
"const": "String",
|
|
7459
|
+
"description": "String"
|
|
7460
|
+
},
|
|
7461
|
+
{
|
|
7462
|
+
"type": "string",
|
|
7463
|
+
"const": "U8",
|
|
7464
|
+
"description": "U8"
|
|
7465
|
+
},
|
|
7466
|
+
{
|
|
7467
|
+
"type": "string",
|
|
7468
|
+
"const": "U16",
|
|
7469
|
+
"description": "U16"
|
|
7470
|
+
},
|
|
7471
|
+
{
|
|
7472
|
+
"type": "string",
|
|
7473
|
+
"const": "U32",
|
|
7474
|
+
"description": "U32"
|
|
7475
|
+
},
|
|
7476
|
+
{
|
|
7477
|
+
"type": "string",
|
|
7478
|
+
"const": "U64",
|
|
7479
|
+
"description": "U64"
|
|
7480
|
+
},
|
|
7481
|
+
{
|
|
7482
|
+
"type": "string",
|
|
7483
|
+
"const": "U128",
|
|
7484
|
+
"description": "U128"
|
|
7485
|
+
},
|
|
7486
|
+
{
|
|
7487
|
+
"type": "string",
|
|
7488
|
+
"const": "U256",
|
|
7489
|
+
"description": "U256"
|
|
7490
|
+
},
|
|
7491
|
+
{
|
|
7492
|
+
"type": "string",
|
|
7493
|
+
"const": "VecBool",
|
|
7494
|
+
"description": "VecBool"
|
|
7495
|
+
},
|
|
7496
|
+
{
|
|
7497
|
+
"type": "string",
|
|
7498
|
+
"const": "VecAddress",
|
|
7499
|
+
"description": "VecAddress"
|
|
7500
|
+
},
|
|
7501
|
+
{
|
|
7502
|
+
"type": "string",
|
|
7503
|
+
"const": "VecString",
|
|
7504
|
+
"description": "VecString"
|
|
7505
|
+
},
|
|
7506
|
+
{
|
|
7507
|
+
"type": "string",
|
|
7508
|
+
"const": "VecU8",
|
|
7509
|
+
"description": "VecU8"
|
|
7510
|
+
},
|
|
7511
|
+
{
|
|
7512
|
+
"type": "string",
|
|
7513
|
+
"const": "VecU16",
|
|
7514
|
+
"description": "VecU16"
|
|
7515
|
+
},
|
|
7516
|
+
{
|
|
7517
|
+
"type": "string",
|
|
7518
|
+
"const": "VecU32",
|
|
7519
|
+
"description": "VecU32"
|
|
7520
|
+
},
|
|
7521
|
+
{
|
|
7522
|
+
"type": "string",
|
|
7523
|
+
"const": "VecU64",
|
|
7524
|
+
"description": "VecU64"
|
|
7525
|
+
},
|
|
7526
|
+
{
|
|
7527
|
+
"type": "string",
|
|
7528
|
+
"const": "VecU128",
|
|
7529
|
+
"description": "VecU128"
|
|
7530
|
+
},
|
|
7531
|
+
{
|
|
7532
|
+
"type": "string",
|
|
7533
|
+
"const": "VecU256",
|
|
7534
|
+
"description": "VecU256"
|
|
7535
|
+
},
|
|
7536
|
+
{
|
|
7537
|
+
"type": "string",
|
|
7538
|
+
"const": "VecVecU8",
|
|
7539
|
+
"description": "VecVecU8"
|
|
7540
|
+
},
|
|
7541
|
+
{
|
|
7542
|
+
"type": "string",
|
|
7543
|
+
"const": "bool",
|
|
7544
|
+
"description": "bool"
|
|
7545
|
+
},
|
|
7546
|
+
{
|
|
7547
|
+
"type": "string",
|
|
7548
|
+
"const": "address",
|
|
7549
|
+
"description": "address"
|
|
7550
|
+
},
|
|
7551
|
+
{
|
|
7552
|
+
"type": "string",
|
|
7553
|
+
"const": "string",
|
|
7554
|
+
"description": "string"
|
|
7555
|
+
},
|
|
7556
|
+
{
|
|
7557
|
+
"type": "string",
|
|
7558
|
+
"const": "u8",
|
|
7559
|
+
"description": "u8"
|
|
7560
|
+
},
|
|
7561
|
+
{
|
|
7562
|
+
"type": "string",
|
|
7563
|
+
"const": "u16",
|
|
7564
|
+
"description": "u16"
|
|
7565
|
+
},
|
|
7566
|
+
{
|
|
7567
|
+
"type": "string",
|
|
7568
|
+
"const": "u32",
|
|
7569
|
+
"description": "u32"
|
|
7570
|
+
},
|
|
7571
|
+
{
|
|
7572
|
+
"type": "string",
|
|
7573
|
+
"const": "u64",
|
|
7574
|
+
"description": "u64"
|
|
7575
|
+
},
|
|
7576
|
+
{
|
|
7577
|
+
"type": "string",
|
|
7578
|
+
"const": "u128",
|
|
7579
|
+
"description": "u128"
|
|
7580
|
+
},
|
|
7581
|
+
{
|
|
7582
|
+
"type": "string",
|
|
7583
|
+
"const": "u256",
|
|
7584
|
+
"description": "u256"
|
|
7585
|
+
},
|
|
7586
|
+
{
|
|
7587
|
+
"type": "string",
|
|
7588
|
+
"const": "vecbool",
|
|
7589
|
+
"description": "vecbool"
|
|
7590
|
+
},
|
|
7591
|
+
{
|
|
7592
|
+
"type": "string",
|
|
7593
|
+
"const": "vecaddress",
|
|
7594
|
+
"description": "vecaddress"
|
|
7595
|
+
},
|
|
7596
|
+
{
|
|
7597
|
+
"type": "string",
|
|
7598
|
+
"const": "vecstring",
|
|
7599
|
+
"description": "vecstring"
|
|
7600
|
+
},
|
|
7601
|
+
{
|
|
7602
|
+
"type": "string",
|
|
7603
|
+
"const": "vecu8",
|
|
7604
|
+
"description": "vecu8"
|
|
7605
|
+
},
|
|
7606
|
+
{
|
|
7607
|
+
"type": "string",
|
|
7608
|
+
"const": "vecu16",
|
|
7609
|
+
"description": "vecu16"
|
|
7610
|
+
},
|
|
7611
|
+
{
|
|
7612
|
+
"type": "string",
|
|
7613
|
+
"const": "vecu32",
|
|
7614
|
+
"description": "vecu32"
|
|
7615
|
+
},
|
|
7616
|
+
{
|
|
7617
|
+
"type": "string",
|
|
7618
|
+
"const": "vecu64",
|
|
7619
|
+
"description": "vecu64"
|
|
7620
|
+
},
|
|
7621
|
+
{
|
|
7622
|
+
"type": "string",
|
|
7623
|
+
"const": "vecu128",
|
|
7624
|
+
"description": "vecu128"
|
|
7625
|
+
},
|
|
7626
|
+
{
|
|
7627
|
+
"type": "string",
|
|
7628
|
+
"const": "vecu256",
|
|
7629
|
+
"description": "vecu256"
|
|
7630
|
+
},
|
|
7631
|
+
{
|
|
7632
|
+
"type": "string",
|
|
7633
|
+
"const": "vecvecu8",
|
|
7634
|
+
"description": "vecvecu8"
|
|
6533
7635
|
}
|
|
6534
|
-
},
|
|
6535
|
-
"required": [
|
|
6536
|
-
"id",
|
|
6537
|
-
"type"
|
|
6538
7636
|
],
|
|
6539
|
-
"
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
"id": {
|
|
6563
|
-
"type": "string",
|
|
6564
|
-
"description": "Received CoinWrapper object ID"
|
|
7637
|
+
"description": "Type of the value"
|
|
7638
|
+
},
|
|
7639
|
+
"value": {
|
|
7640
|
+
"anyOf": [
|
|
7641
|
+
{
|
|
7642
|
+
"type": "boolean"
|
|
7643
|
+
},
|
|
7644
|
+
{
|
|
7645
|
+
"anyOf": [
|
|
7646
|
+
{
|
|
7647
|
+
"type": "object",
|
|
7648
|
+
"properties": {
|
|
7649
|
+
"name_or_address": {
|
|
7650
|
+
"type": "string",
|
|
7651
|
+
"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)."
|
|
7652
|
+
},
|
|
7653
|
+
"local_mark_first": {
|
|
7654
|
+
"type": "boolean",
|
|
7655
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
7656
|
+
}
|
|
7657
|
+
},
|
|
7658
|
+
"additionalProperties": false,
|
|
7659
|
+
"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."
|
|
6565
7660
|
},
|
|
6566
|
-
|
|
6567
|
-
"
|
|
7661
|
+
{
|
|
7662
|
+
"type": "string"
|
|
7663
|
+
}
|
|
7664
|
+
]
|
|
7665
|
+
},
|
|
7666
|
+
{
|
|
7667
|
+
"type": "string"
|
|
7668
|
+
},
|
|
7669
|
+
{
|
|
7670
|
+
"type": "number"
|
|
7671
|
+
},
|
|
7672
|
+
{
|
|
7673
|
+
"type": "array",
|
|
7674
|
+
"items": {
|
|
7675
|
+
"type": "boolean"
|
|
7676
|
+
}
|
|
7677
|
+
},
|
|
7678
|
+
{
|
|
7679
|
+
"anyOf": [
|
|
7680
|
+
{
|
|
7681
|
+
"type": "object",
|
|
7682
|
+
"properties": {
|
|
7683
|
+
"entities": {
|
|
7684
|
+
"type": "array",
|
|
7685
|
+
"items": {
|
|
7686
|
+
"$ref": "#/definitions/guard_table/anyOf/1/items/properties/value/anyOf/1/anyOf/0"
|
|
7687
|
+
}
|
|
7688
|
+
},
|
|
7689
|
+
"check_all_founded": {
|
|
7690
|
+
"type": "boolean",
|
|
7691
|
+
"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"
|
|
7692
|
+
}
|
|
7693
|
+
},
|
|
7694
|
+
"required": [
|
|
7695
|
+
"entities"
|
|
7696
|
+
],
|
|
7697
|
+
"additionalProperties": false,
|
|
7698
|
+
"description": "Used to batch find account or object IDs by name"
|
|
6568
7699
|
},
|
|
6569
|
-
|
|
6570
|
-
"type": "
|
|
6571
|
-
"
|
|
7700
|
+
{
|
|
7701
|
+
"type": "array",
|
|
7702
|
+
"items": {
|
|
7703
|
+
"type": "string"
|
|
7704
|
+
}
|
|
6572
7705
|
}
|
|
6573
|
-
|
|
6574
|
-
"required": [
|
|
6575
|
-
"id",
|
|
6576
|
-
"balance",
|
|
6577
|
-
"payment"
|
|
6578
|
-
],
|
|
6579
|
-
"additionalProperties": false,
|
|
6580
|
-
"description": "Received CoinWrapper object record"
|
|
7706
|
+
]
|
|
6581
7707
|
},
|
|
6582
|
-
|
|
6583
|
-
|
|
7708
|
+
{
|
|
7709
|
+
"type": "array",
|
|
7710
|
+
"items": {
|
|
7711
|
+
"type": "string"
|
|
7712
|
+
}
|
|
7713
|
+
},
|
|
7714
|
+
{
|
|
7715
|
+
"type": "array",
|
|
7716
|
+
"items": {
|
|
7717
|
+
"type": "number"
|
|
7718
|
+
}
|
|
7719
|
+
},
|
|
7720
|
+
{
|
|
7721
|
+
"type": "array",
|
|
7722
|
+
"items": {
|
|
7723
|
+
"type": "array",
|
|
7724
|
+
"items": {
|
|
7725
|
+
"type": "number"
|
|
7726
|
+
}
|
|
7727
|
+
}
|
|
7728
|
+
}
|
|
7729
|
+
],
|
|
7730
|
+
"description": "The actual value data"
|
|
7731
|
+
},
|
|
7732
|
+
"name": {
|
|
7733
|
+
"type": "string",
|
|
7734
|
+
"default": "",
|
|
7735
|
+
"description": "Name or description of this data"
|
|
7736
|
+
}
|
|
7737
|
+
},
|
|
7738
|
+
"required": [
|
|
7739
|
+
"identifier",
|
|
7740
|
+
"b_submission",
|
|
7741
|
+
"value_type"
|
|
7742
|
+
],
|
|
7743
|
+
"additionalProperties": false,
|
|
7744
|
+
"description": "Guard table item"
|
|
7745
|
+
}
|
|
7746
|
+
}
|
|
7747
|
+
],
|
|
7748
|
+
"description": "Data table of the Guard object. When using root.type='file', this field OVERRIDES table in the file."
|
|
7749
|
+
},
|
|
7750
|
+
"guard_rely": {
|
|
7751
|
+
"anyOf": [
|
|
7752
|
+
{
|
|
7753
|
+
"not": {}
|
|
7754
|
+
},
|
|
7755
|
+
{
|
|
7756
|
+
"type": "object",
|
|
7757
|
+
"properties": {
|
|
7758
|
+
"guards": {
|
|
7759
|
+
"type": "array",
|
|
7760
|
+
"items": {
|
|
7761
|
+
"type": "string",
|
|
7762
|
+
"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)."
|
|
6584
7763
|
},
|
|
6585
|
-
"
|
|
6586
|
-
"balance",
|
|
6587
|
-
"token_type",
|
|
6588
|
-
"received"
|
|
6589
|
-
],
|
|
6590
|
-
"additionalProperties": false,
|
|
6591
|
-
"description": "Received record of Coin objects"
|
|
7764
|
+
"description": "List of dependent Guard object IDs or names."
|
|
6592
7765
|
},
|
|
6593
|
-
{
|
|
6594
|
-
"type": "
|
|
6595
|
-
"
|
|
7766
|
+
"logic_or": {
|
|
7767
|
+
"type": "boolean",
|
|
7768
|
+
"description": "Whether to use logical OR operator."
|
|
6596
7769
|
}
|
|
7770
|
+
},
|
|
7771
|
+
"required": [
|
|
7772
|
+
"guards"
|
|
6597
7773
|
],
|
|
6598
|
-
"
|
|
7774
|
+
"additionalProperties": false
|
|
7775
|
+
}
|
|
7776
|
+
],
|
|
7777
|
+
"description": "All Guard objects that the new Guard object depends on. If logic_or is true, the execution result of the new Guard object is the logical OR of the execution results of all dependent Guard objects; otherwise, it is logical AND. When using root.type='file', this field OVERRIDES rely in the file."
|
|
7778
|
+
},
|
|
7779
|
+
"guard_binding_hint": {
|
|
7780
|
+
"anyOf": [
|
|
7781
|
+
{
|
|
7782
|
+
"not": {}
|
|
6599
7783
|
},
|
|
6600
|
-
|
|
6601
|
-
"
|
|
6602
|
-
|
|
6603
|
-
|
|
7784
|
+
{
|
|
7785
|
+
"type": "object",
|
|
7786
|
+
"properties": {
|
|
7787
|
+
"action": {
|
|
7788
|
+
"type": "string",
|
|
7789
|
+
"enum": [
|
|
7790
|
+
"buy",
|
|
7791
|
+
"forward",
|
|
7792
|
+
"allocate",
|
|
7793
|
+
"claim_reward",
|
|
7794
|
+
"vote",
|
|
7795
|
+
"dispute",
|
|
7796
|
+
"write_repository",
|
|
7797
|
+
"submit_progress",
|
|
7798
|
+
"gen_passport",
|
|
7799
|
+
"custom"
|
|
7800
|
+
],
|
|
7801
|
+
"description": "Protected action type. Example: 'buy' for Service buy_guard, 'forward' for Machine Forward.guard."
|
|
6604
7802
|
},
|
|
6605
|
-
{
|
|
6606
|
-
"type": "
|
|
7803
|
+
"host_object": {
|
|
7804
|
+
"type": "string",
|
|
7805
|
+
"enum": [
|
|
7806
|
+
"Service",
|
|
7807
|
+
"Machine",
|
|
7808
|
+
"Arbitration",
|
|
7809
|
+
"Reward",
|
|
7810
|
+
"Repository",
|
|
7811
|
+
"Progress",
|
|
7812
|
+
"Demand",
|
|
7813
|
+
"Standalone"
|
|
7814
|
+
],
|
|
7815
|
+
"description": "Host object type. Example: 'Service', 'Machine'."
|
|
7816
|
+
},
|
|
7817
|
+
"binding_field": {
|
|
7818
|
+
"type": "string",
|
|
7819
|
+
"enum": [
|
|
7820
|
+
"buy_guard",
|
|
7821
|
+
"order_allocators",
|
|
7822
|
+
"Forward.guard",
|
|
7823
|
+
"submission",
|
|
7824
|
+
"guard",
|
|
7825
|
+
"write_guard",
|
|
7826
|
+
"usage_guard",
|
|
7827
|
+
"voting_guard",
|
|
7828
|
+
"ServiceGuard",
|
|
7829
|
+
"none"
|
|
7830
|
+
],
|
|
7831
|
+
"description": "Binding field. Example: 'buy_guard', 'Forward.guard'."
|
|
7832
|
+
},
|
|
7833
|
+
"rule_sentence": {
|
|
7834
|
+
"type": "string",
|
|
7835
|
+
"description": "One-sentence description of the validation rule (human-readable). Example: 'Only the author can purchase this service'."
|
|
7836
|
+
},
|
|
7837
|
+
"failure_conditions": {
|
|
7838
|
+
"type": "array",
|
|
7839
|
+
"items": {
|
|
7840
|
+
"type": "string"
|
|
7841
|
+
},
|
|
7842
|
+
"description": "List of conditions under which the Guard should FAIL. Example: ['Signer is not in allowlist','Order is already completed']."
|
|
7843
|
+
},
|
|
7844
|
+
"circular_reference": {
|
|
7845
|
+
"type": "boolean",
|
|
7846
|
+
"description": "Whether the Guard references the Host Object itself (circular reference pattern). true=Guard queries the Host Object it binds to."
|
|
6607
7847
|
}
|
|
7848
|
+
},
|
|
7849
|
+
"required": [
|
|
7850
|
+
"action",
|
|
7851
|
+
"host_object",
|
|
7852
|
+
"binding_field"
|
|
6608
7853
|
],
|
|
6609
|
-
"
|
|
7854
|
+
"additionalProperties": false,
|
|
7855
|
+
"description": "Optional semantic hint for Guard capability system. Provides intent + binding context so the MCP server can derive GuardPuzzle, run risk assessment, and generate confirmation text. Strongly recommended: fill this field to enable puzzle_status, matched_scene, suggested_patterns, confirmation_text, and pending_questions in the response guard_advice."
|
|
6610
7856
|
}
|
|
6611
|
-
|
|
6612
|
-
"
|
|
6613
|
-
"description": "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."
|
|
7857
|
+
],
|
|
7858
|
+
"description": "Phase 5 Guard capability hint. Provides semantic context (action + host_object + binding_field + optional rule/failure_conditions) for puzzle derivation. When provided, the response will include complete guard_advice (puzzle_status, matched_scene, suggested_patterns, confirmation_text, pending_questions). When absent, puzzle_status intent/binding dimensions are marked incomplete."
|
|
6614
7859
|
},
|
|
6615
7860
|
"data_personal": {
|
|
6616
7861
|
"type": "object",
|
|
@@ -7948,13 +9193,15 @@
|
|
|
7948
9193
|
"additionalProperties": false,
|
|
7949
9194
|
"description": "Specify a specific operation between current node and next node."
|
|
7950
9195
|
},
|
|
7951
|
-
"
|
|
7952
|
-
"type": "
|
|
7953
|
-
"
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
9196
|
+
"op": {
|
|
9197
|
+
"type": "string",
|
|
9198
|
+
"enum": [
|
|
9199
|
+
"next",
|
|
9200
|
+
"hold",
|
|
9201
|
+
"unhold",
|
|
9202
|
+
"adminUnhold"
|
|
9203
|
+
],
|
|
9204
|
+
"description": "Operation type on the forward: 'next' = advance the forward (accomplish); 'hold' = set hold to block the forward; 'unhold' = self-unhold, release own hold (no 224 permission needed); 'adminUnhold' = force-release hold via 224 permission (PROGRESS_UNHOLD)."
|
|
7958
9205
|
},
|
|
7959
9206
|
"message": {
|
|
7960
9207
|
"type": "string",
|
|
@@ -7962,7 +9209,8 @@
|
|
|
7962
9209
|
}
|
|
7963
9210
|
},
|
|
7964
9211
|
"required": [
|
|
7965
|
-
"operation"
|
|
9212
|
+
"operation",
|
|
9213
|
+
"op"
|
|
7966
9214
|
],
|
|
7967
9215
|
"additionalProperties": false,
|
|
7968
9216
|
"description": "Advance order process"
|
|
@@ -8179,7 +9427,8 @@
|
|
|
8179
9427
|
],
|
|
8180
9428
|
"additionalProperties": false
|
|
8181
9429
|
},
|
|
8182
|
-
"
|
|
9430
|
+
"maxItems": 20,
|
|
9431
|
+
"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."
|
|
8183
9432
|
},
|
|
8184
9433
|
"submission": {
|
|
8185
9434
|
"type": "array",
|
|
@@ -8726,6 +9975,237 @@
|
|
|
8726
9975
|
],
|
|
8727
9976
|
"additionalProperties": false,
|
|
8728
9977
|
"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."
|
|
9978
|
+
},
|
|
9979
|
+
"data_proof": {
|
|
9980
|
+
"type": "object",
|
|
9981
|
+
"properties": {
|
|
9982
|
+
"namedNew": {
|
|
9983
|
+
"type": "object",
|
|
9984
|
+
"properties": {
|
|
9985
|
+
"name": {
|
|
9986
|
+
"type": "string",
|
|
9987
|
+
"description": "The name of the object"
|
|
9988
|
+
},
|
|
9989
|
+
"tags": {
|
|
9990
|
+
"type": "array",
|
|
9991
|
+
"items": {
|
|
9992
|
+
"type": "string"
|
|
9993
|
+
},
|
|
9994
|
+
"description": "The tags of the object"
|
|
9995
|
+
},
|
|
9996
|
+
"onChain": {
|
|
9997
|
+
"type": "boolean",
|
|
9998
|
+
"description": "CRITICAL: Whether to sync the name to the blockchain. DEFAULT (undefined/false): The name is stored LOCALLY ONLY on your device (PRIVATE). If set to true: The name is published ON-CHAIN and becomes PUBLICLY VISIBLE to everyone. Only set to true for displaying the relationships you are willing to make public on the chain."
|
|
9999
|
+
},
|
|
10000
|
+
"replaceExistName": {
|
|
10001
|
+
"type": "boolean",
|
|
10002
|
+
"description": "FORCE CLAIM: Set to true ONLY when the user explicitly expresses a STRONG INTENTION to forcefully take over an existing name (e.g., 'I must use this name', 'force rename', 'replace the existing one'). WARNING: This will UNBIND the name from its original object and rebind it to the new one, potentially breaking existing references. If not specified or false: the operation will FAIL with an error when the name is already in use (safe default behavior)."
|
|
10003
|
+
}
|
|
10004
|
+
},
|
|
10005
|
+
"additionalProperties": false,
|
|
10006
|
+
"description": "Assign a name and optional tags to a new object. By default, names are stored LOCALLY (private) on your device. Set 'onChain: true' to create a PUBLIC on-chain identity visible to everyone. IMPORTANT: If the requested name is already taken, the operation will FAIL by default. Only set 'replaceExistName: true' when the user EXPLICITLY demands to forcefully claim the name."
|
|
10007
|
+
},
|
|
10008
|
+
"description": {
|
|
10009
|
+
"type": "string",
|
|
10010
|
+
"description": "Human-readable description of this Proof. Required field."
|
|
10011
|
+
},
|
|
10012
|
+
"proof": {
|
|
10013
|
+
"type": "string",
|
|
10014
|
+
"maxLength": 10240,
|
|
10015
|
+
"description": "Proof content. e.g. merkle tree root"
|
|
10016
|
+
},
|
|
10017
|
+
"server_pubkey": {
|
|
10018
|
+
"type": "string",
|
|
10019
|
+
"maxLength": 2048,
|
|
10020
|
+
"description": "Server public key"
|
|
10021
|
+
},
|
|
10022
|
+
"server_signature": {
|
|
10023
|
+
"type": "string",
|
|
10024
|
+
"maxLength": 40480,
|
|
10025
|
+
"description": "Server signature"
|
|
10026
|
+
},
|
|
10027
|
+
"proof_type": {
|
|
10028
|
+
"anyOf": [
|
|
10029
|
+
{
|
|
10030
|
+
"type": "integer",
|
|
10031
|
+
"minimum": 1
|
|
10032
|
+
},
|
|
10033
|
+
{
|
|
10034
|
+
"type": "string",
|
|
10035
|
+
"pattern": "^\\d+$"
|
|
10036
|
+
}
|
|
10037
|
+
],
|
|
10038
|
+
"description": "Proof type. 1: WOWOK_WTS_PROOF_TYPE (WTS proof); 1-100 reserved for Wowok; user-defined must be > 100. Numeric string accepted."
|
|
10039
|
+
},
|
|
10040
|
+
"item_count": {
|
|
10041
|
+
"anyOf": [
|
|
10042
|
+
{
|
|
10043
|
+
"type": "integer",
|
|
10044
|
+
"minimum": 0
|
|
10045
|
+
},
|
|
10046
|
+
{
|
|
10047
|
+
"type": "string"
|
|
10048
|
+
},
|
|
10049
|
+
{
|
|
10050
|
+
"type": "null"
|
|
10051
|
+
}
|
|
10052
|
+
],
|
|
10053
|
+
"description": "Item count. e.g. number of items in the merkle tree"
|
|
10054
|
+
},
|
|
10055
|
+
"about_address": {
|
|
10056
|
+
"anyOf": [
|
|
10057
|
+
{
|
|
10058
|
+
"type": "string",
|
|
10059
|
+
"description": "Valid ID: 0x prefix + 64 hex characters, or builtin ID (0x5-0x9, 0xa, 0xc, 0xd, 0x403, 0xaaa, 0xaab, 0xacc)"
|
|
10060
|
+
},
|
|
10061
|
+
{
|
|
10062
|
+
"type": "null"
|
|
10063
|
+
}
|
|
10064
|
+
],
|
|
10065
|
+
"description": "About address. Accepts null/undefined (→ Move Option::none). When provided, must be a raw 0x-prefixed address (NOT a name). e.g. address of the entity being proved."
|
|
10066
|
+
}
|
|
10067
|
+
},
|
|
10068
|
+
"required": [
|
|
10069
|
+
"description",
|
|
10070
|
+
"proof",
|
|
10071
|
+
"server_pubkey",
|
|
10072
|
+
"server_signature",
|
|
10073
|
+
"proof_type"
|
|
10074
|
+
],
|
|
10075
|
+
"additionalProperties": false,
|
|
10076
|
+
"description": "On-chain Proof creation. USAGE: Set 'namedNew' field with {name, tag?} to create a named Proof. Proof is an immutable object - it can only be created, not modified. The 'namedNew' field is CRITICAL and REQUIRED."
|
|
10077
|
+
},
|
|
10078
|
+
"data_gen_proof": {
|
|
10079
|
+
"type": "object",
|
|
10080
|
+
"properties": {
|
|
10081
|
+
"proof": {
|
|
10082
|
+
"type": "string",
|
|
10083
|
+
"maxLength": 10240,
|
|
10084
|
+
"description": "Proof content. e.g. merkle tree root"
|
|
10085
|
+
},
|
|
10086
|
+
"server_pubkey": {
|
|
10087
|
+
"type": "string",
|
|
10088
|
+
"maxLength": 2048,
|
|
10089
|
+
"description": "Server public key"
|
|
10090
|
+
},
|
|
10091
|
+
"server_signature": {
|
|
10092
|
+
"type": "string",
|
|
10093
|
+
"maxLength": 40480,
|
|
10094
|
+
"description": "Server signature"
|
|
10095
|
+
},
|
|
10096
|
+
"proof_type": {
|
|
10097
|
+
"anyOf": [
|
|
10098
|
+
{
|
|
10099
|
+
"type": "integer",
|
|
10100
|
+
"minimum": 1
|
|
10101
|
+
},
|
|
10102
|
+
{
|
|
10103
|
+
"type": "string",
|
|
10104
|
+
"pattern": "^\\d+$"
|
|
10105
|
+
}
|
|
10106
|
+
],
|
|
10107
|
+
"description": "Proof type. 1: WOWOK_WTS_PROOF_TYPE (WTS proof); 1-100 reserved for Wowok; user-defined must be > 100. Numeric string accepted."
|
|
10108
|
+
},
|
|
10109
|
+
"description": {
|
|
10110
|
+
"type": "string",
|
|
10111
|
+
"description": "Human-readable description of this Proof. Required field."
|
|
10112
|
+
},
|
|
10113
|
+
"item_count": {
|
|
10114
|
+
"anyOf": [
|
|
10115
|
+
{
|
|
10116
|
+
"type": "integer",
|
|
10117
|
+
"minimum": 0
|
|
10118
|
+
},
|
|
10119
|
+
{
|
|
10120
|
+
"type": "string"
|
|
10121
|
+
},
|
|
10122
|
+
{
|
|
10123
|
+
"type": "null"
|
|
10124
|
+
}
|
|
10125
|
+
],
|
|
10126
|
+
"description": "Item count. e.g. number of items in the merkle tree"
|
|
10127
|
+
},
|
|
10128
|
+
"about_address": {
|
|
10129
|
+
"anyOf": [
|
|
10130
|
+
{
|
|
10131
|
+
"type": "string",
|
|
10132
|
+
"description": "Valid ID: 0x prefix + 64 hex characters, or builtin ID (0x5-0x9, 0xa, 0xc, 0xd, 0x403, 0xaaa, 0xaab, 0xacc)"
|
|
10133
|
+
},
|
|
10134
|
+
{
|
|
10135
|
+
"type": "null"
|
|
10136
|
+
}
|
|
10137
|
+
],
|
|
10138
|
+
"description": "About address. Accepts null/undefined (→ Move Option::none). When provided, must be a raw 0x-prefixed address (NOT a name)."
|
|
10139
|
+
},
|
|
10140
|
+
"env": {
|
|
10141
|
+
"type": "object",
|
|
10142
|
+
"properties": {
|
|
10143
|
+
"account": {
|
|
10144
|
+
"type": "string",
|
|
10145
|
+
"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).",
|
|
10146
|
+
"default": ""
|
|
10147
|
+
},
|
|
10148
|
+
"permission_guard": {
|
|
10149
|
+
"type": "array",
|
|
10150
|
+
"items": {
|
|
10151
|
+
"type": "string"
|
|
10152
|
+
},
|
|
10153
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
10154
|
+
},
|
|
10155
|
+
"no_cache": {
|
|
10156
|
+
"type": "boolean",
|
|
10157
|
+
"description": "Whether to disable caching."
|
|
10158
|
+
},
|
|
10159
|
+
"network": {
|
|
10160
|
+
"type": "string",
|
|
10161
|
+
"enum": [
|
|
10162
|
+
"localnet",
|
|
10163
|
+
"testnet",
|
|
10164
|
+
"mainnet"
|
|
10165
|
+
],
|
|
10166
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
10167
|
+
},
|
|
10168
|
+
"referrer": {
|
|
10169
|
+
"$ref": "#/definitions/data_gen_proof/properties/env/properties/account",
|
|
10170
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
10171
|
+
},
|
|
10172
|
+
"confirmed": {
|
|
10173
|
+
"type": "boolean",
|
|
10174
|
+
"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."
|
|
10175
|
+
},
|
|
10176
|
+
"user_intent_phrases": {
|
|
10177
|
+
"type": "array",
|
|
10178
|
+
"items": {
|
|
10179
|
+
"type": "string"
|
|
10180
|
+
},
|
|
10181
|
+
"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."
|
|
10182
|
+
},
|
|
10183
|
+
"project": {
|
|
10184
|
+
"type": "string",
|
|
10185
|
+
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
10186
|
+
},
|
|
10187
|
+
"client_schema_version": {
|
|
10188
|
+
"type": "string",
|
|
10189
|
+
"description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
|
|
10190
|
+
},
|
|
10191
|
+
"schema_strict_mode": {
|
|
10192
|
+
"type": "boolean",
|
|
10193
|
+
"description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
|
|
10194
|
+
}
|
|
10195
|
+
},
|
|
10196
|
+
"additionalProperties": false,
|
|
10197
|
+
"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."
|
|
10198
|
+
}
|
|
10199
|
+
},
|
|
10200
|
+
"required": [
|
|
10201
|
+
"proof",
|
|
10202
|
+
"server_pubkey",
|
|
10203
|
+
"server_signature",
|
|
10204
|
+
"proof_type",
|
|
10205
|
+
"description"
|
|
10206
|
+
],
|
|
10207
|
+
"additionalProperties": false,
|
|
10208
|
+
"description": "Generate a new Proof object on-chain"
|
|
8729
10209
|
}
|
|
8730
10210
|
}
|
|
8731
10211
|
}
|