@wowok/agent-mcp 2.7.1 → 2.7.2
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/index.js +1 -1
- package/dist/config/runtime.js +1 -238
- package/dist/customer/customer-advice.js +1 -130
- package/dist/customer/index.js +1 -11
- package/dist/customer/industry-risks.js +1 -438
- package/dist/customer/info-puzzle.js +1 -681
- package/dist/customer/order-monitor.js +1 -328
- package/dist/customer/order-strategy.js +1 -373
- package/dist/customer/post-purchase.js +1 -351
- package/dist/customer/preorder-compare.js +1 -34
- package/dist/customer/reminder-system.js +1 -316
- package/dist/customer/risk-assessment.js +1 -397
- package/dist/customer/types.js +1 -13
- package/dist/customer/user-preferences.js +1 -460
- package/dist/evaluation/arbitration-game.d.ts +9 -2
- package/dist/evaluation/arbitration-game.js +1 -48
- package/dist/evaluation/builtins/demand-match.js +1 -153
- package/dist/evaluation/builtins/index.js +1 -10
- package/dist/evaluation/builtins/service-risk.js +1 -55
- package/dist/evaluation/capability.js +1 -13
- package/dist/evaluation/composer.js +1 -40
- package/dist/evaluation/engine.js +1 -175
- package/dist/evaluation/extract.js +1 -115
- package/dist/evaluation/game-strategy.d.ts +27 -0
- package/dist/evaluation/game-strategy.js +1 -0
- package/dist/evaluation/gap.js +1 -100
- package/dist/evaluation/index.d.ts +1 -0
- package/dist/evaluation/index.js +1 -11
- package/dist/evaluation/node-game.d.ts +31 -3
- package/dist/evaluation/node-game.js +1 -57
- package/dist/evaluation/region.js +1 -36
- package/dist/evaluation/types.d.ts +1 -0
- package/dist/evaluation/types.js +1 -1
- package/dist/evaluation/user-injection.js +1 -27
- package/dist/experience/experience-reuse.js +1 -103
- package/dist/experience/index.js +1 -5
- package/dist/experience/intent-distill.js +1 -83
- package/dist/experience/realtime-feedback.js +1 -94
- package/dist/experience/types.js +1 -1
- package/dist/experience/user-profile.js +1 -171
- package/dist/extensions/business-modules.js +1 -287
- package/dist/extensions/capability-manifest.js +1 -781
- package/dist/extensions/constraint-registry.js +1 -198
- package/dist/extensions/index.js +1 -6
- package/dist/extensions/metric-registry.js +1 -257
- package/dist/extensions/mode-evaluator.js +1 -170
- package/dist/extensions/modes.js +1 -499
- package/dist/extensions/registry.js +1 -717
- package/dist/extensions/types.js +1 -1
- package/dist/harness/auto-escalation.js +1 -68
- package/dist/harness/checkpoint.js +1 -129
- package/dist/harness/index.js +1 -78
- package/dist/harness/plan.js +1 -315
- package/dist/harness/recover.js +1 -139
- package/dist/harness/types.js +1 -1
- package/dist/harness/verify.js +1 -237
- package/dist/index.js +1 -273
- package/dist/intent/enrich.js +1 -67
- package/dist/intent/index.js +1 -60
- package/dist/intent/matcher.js +1 -81
- package/dist/intent/store.js +1 -55
- package/dist/intent/types.js +1 -10
- package/dist/knowledge/acquisition-flywheel.js +1 -192
- package/dist/knowledge/allocation-confirm.js +1 -534
- package/dist/knowledge/allocation-context.js +1 -249
- package/dist/knowledge/allocation-ledger.js +1 -463
- package/dist/knowledge/allocation-puzzle.js +1 -298
- package/dist/knowledge/allocation-risk.js +1 -568
- package/dist/knowledge/allocation-templates.js +1 -970
- package/dist/knowledge/allocation-translation.js +1 -585
- package/dist/knowledge/arb-risk.js +1 -210
- package/dist/knowledge/arbitration-confirm.js +1 -559
- package/dist/knowledge/arbitration-context.js +1 -505
- package/dist/knowledge/arbitration-ledger.js +1 -521
- package/dist/knowledge/arbitration-puzzle.js +1 -304
- package/dist/knowledge/arbitration-risk.js +1 -423
- package/dist/knowledge/arbitration-templates.js +1 -276
- package/dist/knowledge/arbitration-translation.js +1 -487
- package/dist/knowledge/arbitration-trust.js +1 -117
- package/dist/knowledge/audit-rules.js +1 -141
- package/dist/knowledge/bridge-risk.js +1 -263
- package/dist/knowledge/contact-risk.js +1 -200
- package/dist/knowledge/contact-templates.js +1 -60
- package/dist/knowledge/demand-confirm.js +1 -206
- package/dist/knowledge/demand-matching.js +1 -132
- package/dist/knowledge/demand-risk.js +1 -240
- package/dist/knowledge/demand-translation.js +1 -354
- package/dist/knowledge/deployment-scanner.js +1 -823
- package/dist/knowledge/dynamic-pricing.js +1 -87
- package/dist/knowledge/examples-scanner-cli.js +1 -26
- package/dist/knowledge/examples-scanner.js +1 -843
- package/dist/knowledge/flywheel-loop.js +1 -404
- package/dist/knowledge/fund-layer.js +1 -973
- package/dist/knowledge/glossary.js +1 -211
- package/dist/knowledge/guard-confirm.js +1 -406
- package/dist/knowledge/guard-context.js +1 -287
- package/dist/knowledge/guard-design-patterns.js +1 -360
- package/dist/knowledge/guard-ledger.js +1 -260
- package/dist/knowledge/guard-lint.js +1 -670
- package/dist/knowledge/guard-migration.js +1 -228
- package/dist/knowledge/guard-puzzle.js +1 -805
- package/dist/knowledge/guard-render.js +1 -700
- package/dist/knowledge/guard-risk.js +1 -1879
- package/dist/knowledge/guard-submission-prompt.js +1 -171
- package/dist/knowledge/guard-templates.js +1 -1105
- package/dist/knowledge/guard-translation.js +1 -1119
- package/dist/knowledge/index.js +1 -436
- package/dist/knowledge/industry-evolution.js +1 -323
- package/dist/knowledge/industry-generalizer.js +1 -381
- package/dist/knowledge/industry-registry.js +1 -174
- package/dist/knowledge/intent-metrics.d.ts +4 -3
- package/dist/knowledge/intent-metrics.js +1 -566
- package/dist/knowledge/machine-confirm.js +1 -559
- package/dist/knowledge/machine-context.js +1 -833
- package/dist/knowledge/machine-ledger.js +1 -338
- package/dist/knowledge/machine-puzzle.js +1 -494
- package/dist/knowledge/machine-render.js +1 -565
- package/dist/knowledge/machine-risk.js +1 -669
- package/dist/knowledge/machine-templates.js +1 -1597
- package/dist/knowledge/machine-topology.js +1 -234
- package/dist/knowledge/machine-translation.js +1 -513
- package/dist/knowledge/mcp-schema-audit-cli.js +1 -45
- package/dist/knowledge/mcp-schema-audit.js +1 -777
- package/dist/knowledge/onchain-constants.js +1 -35
- package/dist/knowledge/order-confirm.js +1 -573
- package/dist/knowledge/order-context.js +1 -390
- package/dist/knowledge/order-ledger.js +1 -341
- package/dist/knowledge/order-puzzle.js +1 -255
- package/dist/knowledge/order-risk.js +1 -653
- package/dist/knowledge/order-templates.js +1 -368
- package/dist/knowledge/order-translation.js +1 -550
- package/dist/knowledge/overrides-loader.js +1 -65
- package/dist/knowledge/passport-confirm.js +1 -531
- package/dist/knowledge/passport-context.js +1 -306
- package/dist/knowledge/passport-ledger.js +1 -282
- package/dist/knowledge/passport-puzzle.js +1 -333
- package/dist/knowledge/passport-risk.js +1 -450
- package/dist/knowledge/passport-templates.js +1 -568
- package/dist/knowledge/passport-translation.js +1 -516
- package/dist/knowledge/payment-risk.js +1 -249
- package/dist/knowledge/permission-confirm.js +1 -426
- package/dist/knowledge/permission-context.js +1 -224
- package/dist/knowledge/permission-ledger.js +1 -403
- package/dist/knowledge/permission-puzzle.js +1 -173
- package/dist/knowledge/permission-risk.js +1 -411
- package/dist/knowledge/permission-templates.js +1 -234
- package/dist/knowledge/permission-translation.js +1 -350
- package/dist/knowledge/personal-risk.js +1 -212
- package/dist/knowledge/process-model.js +1 -160
- package/dist/knowledge/progress-confirm.js +1 -456
- package/dist/knowledge/progress-context.js +1 -452
- package/dist/knowledge/progress-ledger.js +1 -330
- package/dist/knowledge/progress-puzzle.js +1 -219
- package/dist/knowledge/progress-risk.js +1 -461
- package/dist/knowledge/progress-templates.js +1 -228
- package/dist/knowledge/progress-translation.js +1 -405
- package/dist/knowledge/proof-confirm.js +1 -187
- package/dist/knowledge/proof-risk.js +1 -207
- package/dist/knowledge/proof-translation.js +1 -283
- package/dist/knowledge/registrar-risk.js +1 -217
- package/dist/knowledge/repository-confirm.js +1 -286
- package/dist/knowledge/repository-risk.js +1 -373
- package/dist/knowledge/repository-translation.js +1 -445
- package/dist/knowledge/reputation-rules.js +1 -99
- package/dist/knowledge/resource-risk.js +1 -157
- package/dist/knowledge/reward-confirm.js +1 -526
- package/dist/knowledge/reward-context.js +1 -504
- package/dist/knowledge/reward-ledger.js +1 -502
- package/dist/knowledge/reward-puzzle.js +1 -300
- package/dist/knowledge/reward-risk.js +1 -627
- package/dist/knowledge/reward-templates.js +1 -197
- package/dist/knowledge/reward-translation.js +1 -501
- package/dist/knowledge/safety-rules.js +1 -404
- package/dist/knowledge/scenario-modes.js +1 -321
- package/dist/knowledge/service-confirm.js +1 -807
- package/dist/knowledge/service-context.js +1 -403
- package/dist/knowledge/service-ledger.js +1 -609
- package/dist/knowledge/service-puzzle.js +1 -236
- package/dist/knowledge/service-risk.js +1 -651
- package/dist/knowledge/service-templates.js +1 -456
- package/dist/knowledge/service-translation.js +1 -622
- package/dist/knowledge/template-registry.js +1 -353
- package/dist/knowledge/tool-constraints.js +1 -195
- package/dist/knowledge/tools-reference.js +1 -178
- package/dist/knowledge/treasury-confirm.js +1 -512
- package/dist/knowledge/treasury-context.js +1 -363
- package/dist/knowledge/treasury-ledger.js +1 -300
- package/dist/knowledge/treasury-puzzle.js +1 -216
- package/dist/knowledge/treasury-risk.js +1 -440
- package/dist/knowledge/treasury-templates.js +1 -358
- package/dist/knowledge/treasury-translation.js +1 -498
- package/dist/knowledge/trust-metrics.js +1 -198
- package/dist/knowledge/util-risk.js +1 -135
- package/dist/loop-engineering/aggregate.js +1 -132
- package/dist/loop-engineering/context-collect.js +1 -83
- package/dist/loop-engineering/diagnose.js +1 -273
- package/dist/loop-engineering/improve.js +1 -405
- package/dist/loop-engineering/index.js +1 -4
- package/dist/loop-engineering/pipeline.js +1 -56
- package/dist/mode-market/index.js +1 -3
- package/dist/mode-market/registry.js +1 -124
- package/dist/mode-market/review.js +1 -214
- package/dist/mode-market/submission.js +1 -85
- package/dist/participation/collaborator-interest.d.ts +23 -0
- package/dist/participation/collaborator-interest.js +1 -0
- package/dist/participation/customer-interest.d.ts +25 -0
- package/dist/participation/customer-interest.js +1 -0
- package/dist/participation/merchant-interest.js +1 -100
- package/dist/participation/radar-core.d.ts +13 -3
- package/dist/participation/radar-core.js +1 -269
- package/dist/participation/supplier-interest.d.ts +25 -0
- package/dist/participation/supplier-interest.js +1 -0
- package/dist/persona/analyzer.js +1 -66
- package/dist/persona/bridge.js +1 -86
- package/dist/persona/defaults.js +1 -195
- package/dist/persona/experience-bridge.js +1 -23
- package/dist/persona/index.js +1 -71
- package/dist/persona/model.js +1 -111
- package/dist/persona/store.js +1 -62
- package/dist/persona/types.d.ts +3 -1
- package/dist/persona/types.js +1 -5
- package/dist/project/business-puzzle.js +1 -383
- package/dist/project/context-assembly.js +1 -254
- package/dist/project/deployment-bridge.js +1 -120
- package/dist/project/deployment-doc.js +1 -1126
- package/dist/project/edit-planner.js +1 -1342
- package/dist/project/evaluation.js +1 -2011
- package/dist/project/game-theory.js +1 -177
- package/dist/project/graph-builder.js +1 -656
- package/dist/project/graph.js +1 -340
- package/dist/project/handlers.js +1 -1784
- package/dist/project/index.d.ts +1 -0
- package/dist/project/index.js +1 -301
- package/dist/project/intent-analyzer.js +1 -149
- package/dist/project/machine-nodes.js +1 -36
- package/dist/project/merchant-guide.js +1 -264
- package/dist/project/migration.js +1 -125
- package/dist/project/mode-actions.js +1 -309
- package/dist/project/namespace.js +1 -206
- package/dist/project/participation-radar.js +1 -428
- package/dist/project/pipeline-actions.js +1 -109
- package/dist/project/project-store.js +1 -422
- package/dist/project/query.js +1 -153
- package/dist/project/reverse-mapping.d.ts +34 -0
- package/dist/project/reverse-mapping.js +1 -0
- package/dist/project/risk-aggregator.js +1 -295
- package/dist/project/rollback-policy.js +1 -290
- package/dist/project/semantic-assembler.js +1 -345
- package/dist/project/semantic-graph.js +1 -292
- package/dist/project/stage-gate.js +1 -369
- package/dist/project/substep-trace.js +1 -332
- package/dist/project/task-tracker.js +1 -78
- package/dist/role/derivation.d.ts +18 -0
- package/dist/role/derivation.js +1 -0
- package/dist/role/index.d.ts +5 -0
- package/dist/role/index.js +1 -0
- package/dist/role/model.d.ts +8 -0
- package/dist/role/model.js +1 -0
- package/dist/role/resolution.d.ts +11 -0
- package/dist/role/resolution.js +1 -0
- package/dist/role/types.d.ts +11 -0
- package/dist/role/types.js +1 -0
- package/dist/rules.js +1 -52
- package/dist/safety/confirm-gate.js +1 -88
- package/dist/safety/index.js +1 -3
- package/dist/safety/preview.js +1 -52
- package/dist/schema/call/allocation.js +1 -34
- package/dist/schema/call/arbitration.js +1 -113
- package/dist/schema/call/base.d.ts +15 -15
- package/dist/schema/call/base.js +1 -370
- package/dist/schema/call/bridge-handler.js +1 -265
- package/dist/schema/call/bridge.d.ts +7 -7
- package/dist/schema/call/bridge.js +1 -458
- package/dist/schema/call/contact.js +1 -37
- package/dist/schema/call/demand.js +1 -47
- package/dist/schema/call/guard.js +1 -161
- package/dist/schema/call/handler.js +1 -322
- package/dist/schema/call/index.js +1 -20
- package/dist/schema/call/machine.js +1 -193
- package/dist/schema/call/order.js +1 -35
- package/dist/schema/call/payment.js +1 -37
- package/dist/schema/call/permission-handler.js +1 -54
- package/dist/schema/call/permission.js +1 -105
- package/dist/schema/call/personal.js +1 -78
- package/dist/schema/call/progress.js +1 -47
- package/dist/schema/call/proof.js +1 -33
- package/dist/schema/call/repository.js +1 -77
- package/dist/schema/call/reward.js +1 -30
- package/dist/schema/call/semantic.js +1 -1679
- package/dist/schema/call/service.js +1 -184
- package/dist/schema/call/treasury.js +1 -71
- package/dist/schema/common/index.js +1 -407
- package/dist/schema/config/index.js +1 -68
- package/dist/schema/evaluation/index.d.ts +213 -16
- package/dist/schema/evaluation/index.js +1 -356
- package/dist/schema/index.js +1 -17
- package/dist/schema/intent-radar/index.d.ts +13 -13
- package/dist/schema/intent-radar/index.js +1 -89
- package/dist/schema/local/index.d.ts +21 -21
- package/dist/schema/local/index.js +1 -927
- package/dist/schema/local/wip.js +1 -187
- package/dist/schema/messenger/index.d.ts +7 -7
- package/dist/schema/messenger/index.js +1 -475
- package/dist/schema/operations.d.ts +7 -7
- package/dist/schema/operations.js +1 -520
- package/dist/schema/persona/index.d.ts +54 -54
- package/dist/schema/persona/index.js +1 -148
- package/dist/schema/project/index.d.ts +94 -48
- package/dist/schema/project/index.js +1 -2057
- package/dist/schema/query/index.d.ts +423 -7
- package/dist/schema/query/index.js +1 -1646
- package/dist/schema/schema-query/index.js +1 -104
- package/dist/schema/schema-version.js +1 -76
- package/dist/schema/sync-layer4.js +1 -286
- package/dist/schema/task-status.js +1 -36
- package/dist/schema/trust/index.js +1 -314
- package/dist/schema/utils/guard-parser.js +1 -419
- package/dist/schema/utils/guard-query-utils.js +1 -46
- package/dist/schema/utils/node-parser.js +1 -369
- package/dist/schema/utils/object-type-utils.js +1 -35
- package/dist/schema/utils/permission-index-utils.js +1 -7
- package/dist/schema/utils/permission-machine-check.js +1 -121
- package/dist/schema/utils/skills-recommendation.js +1 -77
- package/dist/schema-query/index.js +1 -810
- package/dist/schemas/account_operation.output.json +5 -2
- package/dist/schemas/bridge_operation.output.json +5 -2
- package/dist/schemas/evaluation_operation.output.json +112 -7
- package/dist/schemas/evaluation_operation.schema.json +93 -6
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/intent_radar.output.json +4 -1
- package/dist/schemas/intent_radar.schema.json +4 -1
- package/dist/schemas/local_info_operation.output.json +5 -2
- package/dist/schemas/local_mark_operation.output.json +5 -2
- package/dist/schemas/messenger_operation.output.json +5 -2
- package/dist/schemas/onchain_events.output.json +5 -2
- package/dist/schemas/onchain_operations.output.json +5 -2
- package/dist/schemas/onchain_operations.schema.json +4 -4
- package/dist/schemas/onchain_operations_allocation.schema.json +1 -1
- package/dist/schemas/onchain_operations_machine.schema.json +2 -2
- package/dist/schemas/onchain_operations_service.schema.json +1 -1
- package/dist/schemas/onchain_table_data.output.json +6 -3
- package/dist/schemas/persona_operation.output.json +4 -1
- package/dist/schemas/persona_operation.schema.json +4 -1
- package/dist/schemas/project_operation.output.json +28 -8
- package/dist/schemas/query_toolkit.output.json +8 -5
- package/dist/schemas/wowok_buildin_info.output.json +132 -0
- package/dist/schemas/wowok_buildin_info.schema.json +14 -0
- package/dist/telemetry/index.js +1 -112
- package/dist/telemetry/redact.js +1 -23
- package/dist/telemetry/storage.js +1 -80
- package/dist/tools/handlers/bridge.js +1 -1
- package/dist/tools/handlers/config.js +1 -74
- package/dist/tools/handlers/evaluation.js +1 -123
- package/dist/tools/handlers/file-export.js +1 -90
- package/dist/tools/handlers/intent-radar.js +1 -76
- package/dist/tools/handlers/local.js +1 -53
- package/dist/tools/handlers/messenger.js +1 -188
- package/dist/tools/handlers/onchain.js +1 -1180
- package/dist/tools/handlers/persona.js +1 -89
- package/dist/tools/handlers/project.js +1 -211
- package/dist/tools/handlers/query.js +1 -434
- package/dist/tools/handlers/schema-query.js +1 -176
- package/dist/tools/handlers/task-status.js +1 -26
- package/dist/tools/handlers/trust.js +1 -380
- package/dist/tools/handlers/wip.js +1 -90
- package/dist/tools/index.js +1 -1382
- package/dist/tools/retry.js +1 -85
- package/dist/tools/rules-hook.js +1 -23
- package/dist/tools/shared.js +1 -130
- package/dist/tools/types.js +1 -1
- package/dist/tools/upgrade-check.d.ts +19 -0
- package/dist/tools/upgrade-check.js +1 -0
- package/dist/tools/wip-deploy-assist.js +1 -306
- package/dist/tools/wrap.js +1 -500
- package/package.json +4 -2
|
@@ -3,16 +3,16 @@ export declare const PersonaOperationInputSchema: z.ZodDiscriminatedUnion<"actio
|
|
|
3
3
|
action: z.ZodLiteral<"get">;
|
|
4
4
|
account: z.ZodOptional<z.ZodString>;
|
|
5
5
|
industry: z.ZodOptional<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>>;
|
|
6
|
-
role: z.ZodOptional<z.ZodEnum<["merchant", "
|
|
6
|
+
role: z.ZodOptional<z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>>;
|
|
7
7
|
}, "strict", z.ZodTypeAny, {
|
|
8
8
|
action: "get";
|
|
9
9
|
account?: string | undefined;
|
|
10
|
-
role?: "
|
|
10
|
+
role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
|
|
11
11
|
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
action: "get";
|
|
14
14
|
account?: string | undefined;
|
|
15
|
-
role?: "
|
|
15
|
+
role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
|
|
16
16
|
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
17
17
|
}>, z.ZodObject<{
|
|
18
18
|
action: z.ZodLiteral<"list">;
|
|
@@ -24,7 +24,7 @@ export declare const PersonaOperationInputSchema: z.ZodDiscriminatedUnion<"actio
|
|
|
24
24
|
action: z.ZodLiteral<"set">;
|
|
25
25
|
scope: z.ZodEnum<["system", "account"]>;
|
|
26
26
|
account: z.ZodOptional<z.ZodString>;
|
|
27
|
-
role: z.ZodEnum<["merchant", "
|
|
27
|
+
role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
|
|
28
28
|
industries: z.ZodDefault<z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">>;
|
|
29
29
|
long_term: z.ZodOptional<z.ZodObject<{
|
|
30
30
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -111,7 +111,7 @@ export declare const PersonaOperationInputSchema: z.ZodDiscriminatedUnion<"actio
|
|
|
111
111
|
spec?: string | undefined;
|
|
112
112
|
}>>;
|
|
113
113
|
}, "strict", z.ZodTypeAny, {
|
|
114
|
-
role: "
|
|
114
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
115
115
|
action: "set";
|
|
116
116
|
scope: "account" | "system";
|
|
117
117
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
@@ -141,7 +141,7 @@ export declare const PersonaOperationInputSchema: z.ZodDiscriminatedUnion<"actio
|
|
|
141
141
|
spec?: string | undefined;
|
|
142
142
|
} | undefined;
|
|
143
143
|
}, {
|
|
144
|
-
role: "
|
|
144
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
145
145
|
action: "set";
|
|
146
146
|
scope: "account" | "system";
|
|
147
147
|
account?: string | undefined;
|
|
@@ -184,7 +184,7 @@ export declare const PersonaOperationInputSchema: z.ZodDiscriminatedUnion<"actio
|
|
|
184
184
|
context: z.ZodString;
|
|
185
185
|
scope: z.ZodEnum<["system", "account"]>;
|
|
186
186
|
account: z.ZodOptional<z.ZodString>;
|
|
187
|
-
role: z.ZodOptional<z.ZodEnum<["merchant", "
|
|
187
|
+
role: z.ZodOptional<z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>>;
|
|
188
188
|
industries: z.ZodOptional<z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">>;
|
|
189
189
|
mode: z.ZodOptional<z.ZodEnum<["merge", "replace"]>>;
|
|
190
190
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -192,7 +192,7 @@ export declare const PersonaOperationInputSchema: z.ZodDiscriminatedUnion<"actio
|
|
|
192
192
|
context: string;
|
|
193
193
|
scope: "account" | "system";
|
|
194
194
|
account?: string | undefined;
|
|
195
|
-
role?: "
|
|
195
|
+
role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
|
|
196
196
|
mode?: "replace" | "merge" | undefined;
|
|
197
197
|
industries?: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[] | undefined;
|
|
198
198
|
}, {
|
|
@@ -200,7 +200,7 @@ export declare const PersonaOperationInputSchema: z.ZodDiscriminatedUnion<"actio
|
|
|
200
200
|
context: string;
|
|
201
201
|
scope: "account" | "system";
|
|
202
202
|
account?: string | undefined;
|
|
203
|
-
role?: "
|
|
203
|
+
role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
|
|
204
204
|
mode?: "replace" | "merge" | undefined;
|
|
205
205
|
industries?: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[] | undefined;
|
|
206
206
|
}>, z.ZodObject<{
|
|
@@ -230,7 +230,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
230
230
|
effective: z.ZodObject<{
|
|
231
231
|
scope: z.ZodEnum<["system", "account"]>;
|
|
232
232
|
account: z.ZodOptional<z.ZodString>;
|
|
233
|
-
role: z.ZodEnum<["merchant", "
|
|
233
|
+
role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
|
|
234
234
|
industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
|
|
235
235
|
layer: z.ZodObject<{
|
|
236
236
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -288,7 +288,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
288
288
|
account?: string | undefined;
|
|
289
289
|
}>, "many">;
|
|
290
290
|
}, "strict", z.ZodTypeAny, {
|
|
291
|
-
role: "
|
|
291
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
292
292
|
scope: "account" | "system";
|
|
293
293
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
294
294
|
layer: {
|
|
@@ -310,7 +310,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
310
310
|
}[];
|
|
311
311
|
account?: string | undefined;
|
|
312
312
|
}, {
|
|
313
|
-
role: "
|
|
313
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
314
314
|
scope: "account" | "system";
|
|
315
315
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
316
316
|
layer: {
|
|
@@ -338,7 +338,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
338
338
|
action: "get";
|
|
339
339
|
injection: Record<string, unknown>;
|
|
340
340
|
effective: {
|
|
341
|
-
role: "
|
|
341
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
342
342
|
scope: "account" | "system";
|
|
343
343
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
344
344
|
layer: {
|
|
@@ -365,7 +365,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
365
365
|
action: "get";
|
|
366
366
|
injection: Record<string, unknown>;
|
|
367
367
|
effective: {
|
|
368
|
-
role: "
|
|
368
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
369
369
|
scope: "account" | "system";
|
|
370
370
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
371
371
|
layer: {
|
|
@@ -394,7 +394,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
394
394
|
version: z.ZodNumber;
|
|
395
395
|
scope: z.ZodEnum<["system", "account"]>;
|
|
396
396
|
account: z.ZodOptional<z.ZodString>;
|
|
397
|
-
role: z.ZodEnum<["merchant", "
|
|
397
|
+
role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
|
|
398
398
|
industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
|
|
399
399
|
long_term: z.ZodObject<{
|
|
400
400
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -483,7 +483,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
483
483
|
updated_at: z.ZodNumber;
|
|
484
484
|
}, "strict", z.ZodTypeAny, {
|
|
485
485
|
version: number;
|
|
486
|
-
role: "
|
|
486
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
487
487
|
current: {
|
|
488
488
|
strategy?: string[] | undefined;
|
|
489
489
|
identity?: {
|
|
@@ -514,7 +514,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
514
514
|
account?: string | undefined;
|
|
515
515
|
}, {
|
|
516
516
|
version: number;
|
|
517
|
-
role: "
|
|
517
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
518
518
|
current: {
|
|
519
519
|
strategy?: string[] | undefined;
|
|
520
520
|
identity?: {
|
|
@@ -548,7 +548,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
548
548
|
version: z.ZodNumber;
|
|
549
549
|
scope: z.ZodEnum<["system", "account"]>;
|
|
550
550
|
account: z.ZodOptional<z.ZodString>;
|
|
551
|
-
role: z.ZodEnum<["merchant", "
|
|
551
|
+
role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
|
|
552
552
|
industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
|
|
553
553
|
long_term: z.ZodObject<{
|
|
554
554
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -637,7 +637,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
637
637
|
updated_at: z.ZodNumber;
|
|
638
638
|
}, "strict", z.ZodTypeAny, {
|
|
639
639
|
version: number;
|
|
640
|
-
role: "
|
|
640
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
641
641
|
current: {
|
|
642
642
|
strategy?: string[] | undefined;
|
|
643
643
|
identity?: {
|
|
@@ -668,7 +668,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
668
668
|
account?: string | undefined;
|
|
669
669
|
}, {
|
|
670
670
|
version: number;
|
|
671
|
-
role: "
|
|
671
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
672
672
|
current: {
|
|
673
673
|
strategy?: string[] | undefined;
|
|
674
674
|
identity?: {
|
|
@@ -702,7 +702,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
702
702
|
action: "list";
|
|
703
703
|
personas: {
|
|
704
704
|
version: number;
|
|
705
|
-
role: "
|
|
705
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
706
706
|
current: {
|
|
707
707
|
strategy?: string[] | undefined;
|
|
708
708
|
identity?: {
|
|
@@ -734,7 +734,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
734
734
|
}[];
|
|
735
735
|
defaults: {
|
|
736
736
|
version: number;
|
|
737
|
-
role: "
|
|
737
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
738
738
|
current: {
|
|
739
739
|
strategy?: string[] | undefined;
|
|
740
740
|
identity?: {
|
|
@@ -768,7 +768,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
768
768
|
action: "list";
|
|
769
769
|
personas: {
|
|
770
770
|
version: number;
|
|
771
|
-
role: "
|
|
771
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
772
772
|
current: {
|
|
773
773
|
strategy?: string[] | undefined;
|
|
774
774
|
identity?: {
|
|
@@ -800,7 +800,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
800
800
|
}[];
|
|
801
801
|
defaults: {
|
|
802
802
|
version: number;
|
|
803
|
-
role: "
|
|
803
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
804
804
|
current: {
|
|
805
805
|
strategy?: string[] | undefined;
|
|
806
806
|
identity?: {
|
|
@@ -836,7 +836,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
836
836
|
version: z.ZodNumber;
|
|
837
837
|
scope: z.ZodEnum<["system", "account"]>;
|
|
838
838
|
account: z.ZodOptional<z.ZodString>;
|
|
839
|
-
role: z.ZodEnum<["merchant", "
|
|
839
|
+
role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
|
|
840
840
|
industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
|
|
841
841
|
long_term: z.ZodObject<{
|
|
842
842
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -925,7 +925,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
925
925
|
updated_at: z.ZodNumber;
|
|
926
926
|
}, "strict", z.ZodTypeAny, {
|
|
927
927
|
version: number;
|
|
928
|
-
role: "
|
|
928
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
929
929
|
current: {
|
|
930
930
|
strategy?: string[] | undefined;
|
|
931
931
|
identity?: {
|
|
@@ -956,7 +956,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
956
956
|
account?: string | undefined;
|
|
957
957
|
}, {
|
|
958
958
|
version: number;
|
|
959
|
-
role: "
|
|
959
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
960
960
|
current: {
|
|
961
961
|
strategy?: string[] | undefined;
|
|
962
962
|
identity?: {
|
|
@@ -991,7 +991,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
991
991
|
action: "set";
|
|
992
992
|
persona: {
|
|
993
993
|
version: number;
|
|
994
|
-
role: "
|
|
994
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
995
995
|
current: {
|
|
996
996
|
strategy?: string[] | undefined;
|
|
997
997
|
identity?: {
|
|
@@ -1026,7 +1026,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1026
1026
|
action: "set";
|
|
1027
1027
|
persona: {
|
|
1028
1028
|
version: number;
|
|
1029
|
-
role: "
|
|
1029
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1030
1030
|
current: {
|
|
1031
1031
|
strategy?: string[] | undefined;
|
|
1032
1032
|
identity?: {
|
|
@@ -1060,7 +1060,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1060
1060
|
}>, z.ZodObject<{
|
|
1061
1061
|
action: z.ZodLiteral<"analyze">;
|
|
1062
1062
|
analysis: z.ZodObject<{
|
|
1063
|
-
role: z.ZodOptional<z.ZodEnum<["merchant", "
|
|
1063
|
+
role: z.ZodOptional<z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>>;
|
|
1064
1064
|
industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
|
|
1065
1065
|
preferences: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1066
1066
|
requirements: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1090,7 +1090,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1090
1090
|
preferences: Record<string, unknown>;
|
|
1091
1091
|
requirements: string[];
|
|
1092
1092
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
1093
|
-
role?: "
|
|
1093
|
+
role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
|
|
1094
1094
|
}, {
|
|
1095
1095
|
confidence: number;
|
|
1096
1096
|
rules: string[];
|
|
@@ -1102,7 +1102,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1102
1102
|
preferences: Record<string, unknown>;
|
|
1103
1103
|
requirements: string[];
|
|
1104
1104
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
1105
|
-
role?: "
|
|
1105
|
+
role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
|
|
1106
1106
|
}>;
|
|
1107
1107
|
}, "strict", z.ZodTypeAny, {
|
|
1108
1108
|
action: "analyze";
|
|
@@ -1117,7 +1117,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1117
1117
|
preferences: Record<string, unknown>;
|
|
1118
1118
|
requirements: string[];
|
|
1119
1119
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
1120
|
-
role?: "
|
|
1120
|
+
role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
|
|
1121
1121
|
};
|
|
1122
1122
|
}, {
|
|
1123
1123
|
action: "analyze";
|
|
@@ -1132,7 +1132,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1132
1132
|
preferences: Record<string, unknown>;
|
|
1133
1133
|
requirements: string[];
|
|
1134
1134
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
1135
|
-
role?: "
|
|
1135
|
+
role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
|
|
1136
1136
|
};
|
|
1137
1137
|
}>, z.ZodObject<{
|
|
1138
1138
|
action: z.ZodLiteral<"apply">;
|
|
@@ -1140,7 +1140,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1140
1140
|
version: z.ZodNumber;
|
|
1141
1141
|
scope: z.ZodEnum<["system", "account"]>;
|
|
1142
1142
|
account: z.ZodOptional<z.ZodString>;
|
|
1143
|
-
role: z.ZodEnum<["merchant", "
|
|
1143
|
+
role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
|
|
1144
1144
|
industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
|
|
1145
1145
|
long_term: z.ZodObject<{
|
|
1146
1146
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1229,7 +1229,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1229
1229
|
updated_at: z.ZodNumber;
|
|
1230
1230
|
}, "strict", z.ZodTypeAny, {
|
|
1231
1231
|
version: number;
|
|
1232
|
-
role: "
|
|
1232
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1233
1233
|
current: {
|
|
1234
1234
|
strategy?: string[] | undefined;
|
|
1235
1235
|
identity?: {
|
|
@@ -1260,7 +1260,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1260
1260
|
account?: string | undefined;
|
|
1261
1261
|
}, {
|
|
1262
1262
|
version: number;
|
|
1263
|
-
role: "
|
|
1263
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1264
1264
|
current: {
|
|
1265
1265
|
strategy?: string[] | undefined;
|
|
1266
1266
|
identity?: {
|
|
@@ -1293,7 +1293,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1293
1293
|
effective: z.ZodObject<{
|
|
1294
1294
|
scope: z.ZodEnum<["system", "account"]>;
|
|
1295
1295
|
account: z.ZodOptional<z.ZodString>;
|
|
1296
|
-
role: z.ZodEnum<["merchant", "
|
|
1296
|
+
role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
|
|
1297
1297
|
industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
|
|
1298
1298
|
layer: z.ZodObject<{
|
|
1299
1299
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1351,7 +1351,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1351
1351
|
account?: string | undefined;
|
|
1352
1352
|
}>, "many">;
|
|
1353
1353
|
}, "strict", z.ZodTypeAny, {
|
|
1354
|
-
role: "
|
|
1354
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1355
1355
|
scope: "account" | "system";
|
|
1356
1356
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
1357
1357
|
layer: {
|
|
@@ -1373,7 +1373,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1373
1373
|
}[];
|
|
1374
1374
|
account?: string | undefined;
|
|
1375
1375
|
}, {
|
|
1376
|
-
role: "
|
|
1376
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1377
1377
|
scope: "account" | "system";
|
|
1378
1378
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
1379
1379
|
layer: {
|
|
@@ -1416,7 +1416,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1416
1416
|
value?: unknown;
|
|
1417
1417
|
}[];
|
|
1418
1418
|
effective: {
|
|
1419
|
-
role: "
|
|
1419
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1420
1420
|
scope: "account" | "system";
|
|
1421
1421
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
1422
1422
|
layer: {
|
|
@@ -1440,7 +1440,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1440
1440
|
};
|
|
1441
1441
|
persona: {
|
|
1442
1442
|
version: number;
|
|
1443
|
-
role: "
|
|
1443
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1444
1444
|
current: {
|
|
1445
1445
|
strategy?: string[] | undefined;
|
|
1446
1446
|
identity?: {
|
|
@@ -1478,7 +1478,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1478
1478
|
value?: unknown;
|
|
1479
1479
|
}[];
|
|
1480
1480
|
effective: {
|
|
1481
|
-
role: "
|
|
1481
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1482
1482
|
scope: "account" | "system";
|
|
1483
1483
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
1484
1484
|
layer: {
|
|
@@ -1502,7 +1502,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1502
1502
|
};
|
|
1503
1503
|
persona: {
|
|
1504
1504
|
version: number;
|
|
1505
|
-
role: "
|
|
1505
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1506
1506
|
current: {
|
|
1507
1507
|
strategy?: string[] | undefined;
|
|
1508
1508
|
identity?: {
|
|
@@ -1538,7 +1538,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1538
1538
|
version: z.ZodNumber;
|
|
1539
1539
|
scope: z.ZodEnum<["system", "account"]>;
|
|
1540
1540
|
account: z.ZodOptional<z.ZodString>;
|
|
1541
|
-
role: z.ZodEnum<["merchant", "
|
|
1541
|
+
role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
|
|
1542
1542
|
industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
|
|
1543
1543
|
long_term: z.ZodObject<{
|
|
1544
1544
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1627,7 +1627,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1627
1627
|
updated_at: z.ZodNumber;
|
|
1628
1628
|
}, "strict", z.ZodTypeAny, {
|
|
1629
1629
|
version: number;
|
|
1630
|
-
role: "
|
|
1630
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1631
1631
|
current: {
|
|
1632
1632
|
strategy?: string[] | undefined;
|
|
1633
1633
|
identity?: {
|
|
@@ -1658,7 +1658,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1658
1658
|
account?: string | undefined;
|
|
1659
1659
|
}, {
|
|
1660
1660
|
version: number;
|
|
1661
|
-
role: "
|
|
1661
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1662
1662
|
current: {
|
|
1663
1663
|
strategy?: string[] | undefined;
|
|
1664
1664
|
identity?: {
|
|
@@ -1733,7 +1733,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1733
1733
|
effective: z.ZodObject<{
|
|
1734
1734
|
scope: z.ZodEnum<["system", "account"]>;
|
|
1735
1735
|
account: z.ZodOptional<z.ZodString>;
|
|
1736
|
-
role: z.ZodEnum<["merchant", "
|
|
1736
|
+
role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
|
|
1737
1737
|
industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
|
|
1738
1738
|
layer: z.ZodObject<{
|
|
1739
1739
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1791,7 +1791,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1791
1791
|
account?: string | undefined;
|
|
1792
1792
|
}>, "many">;
|
|
1793
1793
|
}, "strict", z.ZodTypeAny, {
|
|
1794
|
-
role: "
|
|
1794
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1795
1795
|
scope: "account" | "system";
|
|
1796
1796
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
1797
1797
|
layer: {
|
|
@@ -1813,7 +1813,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1813
1813
|
}[];
|
|
1814
1814
|
account?: string | undefined;
|
|
1815
1815
|
}, {
|
|
1816
|
-
role: "
|
|
1816
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1817
1817
|
scope: "account" | "system";
|
|
1818
1818
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
1819
1819
|
layer: {
|
|
@@ -1850,7 +1850,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1850
1850
|
spec?: string | undefined;
|
|
1851
1851
|
};
|
|
1852
1852
|
effective: {
|
|
1853
|
-
role: "
|
|
1853
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1854
1854
|
scope: "account" | "system";
|
|
1855
1855
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
1856
1856
|
layer: {
|
|
@@ -1874,7 +1874,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1874
1874
|
};
|
|
1875
1875
|
persona: {
|
|
1876
1876
|
version: number;
|
|
1877
|
-
role: "
|
|
1877
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1878
1878
|
current: {
|
|
1879
1879
|
strategy?: string[] | undefined;
|
|
1880
1880
|
identity?: {
|
|
@@ -1919,7 +1919,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1919
1919
|
spec?: string | undefined;
|
|
1920
1920
|
};
|
|
1921
1921
|
effective: {
|
|
1922
|
-
role: "
|
|
1922
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1923
1923
|
scope: "account" | "system";
|
|
1924
1924
|
industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
|
|
1925
1925
|
layer: {
|
|
@@ -1943,7 +1943,7 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"acti
|
|
|
1943
1943
|
};
|
|
1944
1944
|
persona: {
|
|
1945
1945
|
version: number;
|
|
1946
|
-
role: "
|
|
1946
|
+
role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
|
|
1947
1947
|
current: {
|
|
1948
1948
|
strategy?: string[] | undefined;
|
|
1949
1949
|
identity?: {
|
|
@@ -1,148 +1 @@
|
|
|
1
|
-
import { z
|
|
2
|
-
const IndustryEnum = z.enum(["freelance", "rental", "education", "travel", "subscription", "retail"]);
|
|
3
|
-
const RoleEnum = z.enum(["merchant", "user", "arbitrator"]);
|
|
4
|
-
const ScopeEnum = z.enum(["system", "account"]);
|
|
5
|
-
const PersonaIdentitySchema = z
|
|
6
|
-
.object({
|
|
7
|
-
region: z.string().optional(),
|
|
8
|
-
languages: z.array(z.string()).optional(),
|
|
9
|
-
self_description: z.string().optional(),
|
|
10
|
-
})
|
|
11
|
-
.strict();
|
|
12
|
-
const PersonaLayerSchema = z
|
|
13
|
-
.object({
|
|
14
|
-
identity: PersonaIdentitySchema.optional(),
|
|
15
|
-
preferences: z.record(z.unknown()).optional(),
|
|
16
|
-
strategy: z.array(z.string()).optional(),
|
|
17
|
-
rules: z.array(z.string()).optional(),
|
|
18
|
-
requirements: z.array(z.string()).optional(),
|
|
19
|
-
spec: z.string().optional(),
|
|
20
|
-
})
|
|
21
|
-
.strict();
|
|
22
|
-
const PersonaSchema = z
|
|
23
|
-
.object({
|
|
24
|
-
version: z.number(),
|
|
25
|
-
scope: ScopeEnum,
|
|
26
|
-
account: z.string().optional(),
|
|
27
|
-
role: RoleEnum,
|
|
28
|
-
industries: z.array(IndustryEnum),
|
|
29
|
-
long_term: PersonaLayerSchema,
|
|
30
|
-
current: PersonaLayerSchema,
|
|
31
|
-
updated_at: z.number(),
|
|
32
|
-
})
|
|
33
|
-
.strict();
|
|
34
|
-
const PersonaSourceSchema = z
|
|
35
|
-
.object({
|
|
36
|
-
scope: ScopeEnum,
|
|
37
|
-
account: z.string().optional(),
|
|
38
|
-
part: z.enum(["long_term", "current"]),
|
|
39
|
-
})
|
|
40
|
-
.strict();
|
|
41
|
-
const EffectivePersonaSchema = z
|
|
42
|
-
.object({
|
|
43
|
-
scope: ScopeEnum,
|
|
44
|
-
account: z.string().optional(),
|
|
45
|
-
role: RoleEnum,
|
|
46
|
-
industries: z.array(IndustryEnum),
|
|
47
|
-
layer: PersonaLayerSchema,
|
|
48
|
-
sources: z.array(PersonaSourceSchema),
|
|
49
|
-
})
|
|
50
|
-
.strict();
|
|
51
|
-
const PersonaAnalysisSuggestionSchema = z
|
|
52
|
-
.object({
|
|
53
|
-
field: z.string(),
|
|
54
|
-
value: z.unknown(),
|
|
55
|
-
reason: z.string(),
|
|
56
|
-
})
|
|
57
|
-
.strict();
|
|
58
|
-
const PersonaAnalysisSchema = z
|
|
59
|
-
.object({
|
|
60
|
-
role: RoleEnum.optional(),
|
|
61
|
-
industries: z.array(IndustryEnum),
|
|
62
|
-
preferences: z.record(z.unknown()),
|
|
63
|
-
requirements: z.array(z.string()),
|
|
64
|
-
rules: z.array(z.string()),
|
|
65
|
-
suggestions: z.array(PersonaAnalysisSuggestionSchema),
|
|
66
|
-
confidence: z.number(),
|
|
67
|
-
})
|
|
68
|
-
.strict();
|
|
69
|
-
export const PersonaOperationInputSchema = z.discriminatedUnion("action", [
|
|
70
|
-
z.object({
|
|
71
|
-
action: z.literal("get"),
|
|
72
|
-
account: z.string().optional().describe("Chain account address; omitted = system only."),
|
|
73
|
-
industry: IndustryEnum.optional(),
|
|
74
|
-
role: RoleEnum.optional(),
|
|
75
|
-
}).strict(),
|
|
76
|
-
z.object({
|
|
77
|
-
action: z.literal("list"),
|
|
78
|
-
}).strict(),
|
|
79
|
-
z.object({
|
|
80
|
-
action: z.literal("set"),
|
|
81
|
-
scope: ScopeEnum,
|
|
82
|
-
account: z.string().optional().describe("Required when scope=account."),
|
|
83
|
-
role: RoleEnum,
|
|
84
|
-
industries: z.array(IndustryEnum).default([]),
|
|
85
|
-
long_term: PersonaLayerSchema.optional(),
|
|
86
|
-
current: PersonaLayerSchema.optional(),
|
|
87
|
-
}).strict(),
|
|
88
|
-
z.object({
|
|
89
|
-
action: z.literal("analyze"),
|
|
90
|
-
context: z.string().describe("Free-form context: website URL, experience summary, self description, goal."),
|
|
91
|
-
}).strict(),
|
|
92
|
-
z.object({
|
|
93
|
-
action: z.literal("apply"),
|
|
94
|
-
context: z.string().describe("Free-form context whose extracted signals feed the CURRENT layer."),
|
|
95
|
-
scope: ScopeEnum,
|
|
96
|
-
account: z.string().optional(),
|
|
97
|
-
role: RoleEnum.optional(),
|
|
98
|
-
industries: z.array(IndustryEnum).optional(),
|
|
99
|
-
mode: z.enum(["merge", "replace"]).optional().describe("merge (default) unions strategy/rules/requirements into current; replace discards the existing current layer."),
|
|
100
|
-
}).strict(),
|
|
101
|
-
z.object({
|
|
102
|
-
action: z.literal("sync"),
|
|
103
|
-
account: z.string().optional().describe("Account whose behavior (experience layer) is merged into its CURRENT layer. Omit to sync the system persona."),
|
|
104
|
-
}).strict(),
|
|
105
|
-
z.object({
|
|
106
|
-
action: z.literal("remove"),
|
|
107
|
-
scope: ScopeEnum,
|
|
108
|
-
account: z.string().optional(),
|
|
109
|
-
}).strict(),
|
|
110
|
-
]);
|
|
111
|
-
export const PersonaOperationOutputSchema = z.discriminatedUnion("action", [
|
|
112
|
-
z.object({
|
|
113
|
-
action: z.literal("get"),
|
|
114
|
-
effective: EffectivePersonaSchema,
|
|
115
|
-
context_text: z.string(),
|
|
116
|
-
injection: z.record(z.unknown()),
|
|
117
|
-
}).strict(),
|
|
118
|
-
z.object({
|
|
119
|
-
action: z.literal("list"),
|
|
120
|
-
personas: z.array(PersonaSchema),
|
|
121
|
-
defaults: z.array(PersonaSchema),
|
|
122
|
-
}).strict(),
|
|
123
|
-
z.object({
|
|
124
|
-
action: z.literal("set"),
|
|
125
|
-
persona: PersonaSchema,
|
|
126
|
-
line_count: z.number(),
|
|
127
|
-
}).strict(),
|
|
128
|
-
z.object({
|
|
129
|
-
action: z.literal("analyze"),
|
|
130
|
-
analysis: PersonaAnalysisSchema,
|
|
131
|
-
}).strict(),
|
|
132
|
-
z.object({
|
|
133
|
-
action: z.literal("apply"),
|
|
134
|
-
persona: PersonaSchema,
|
|
135
|
-
effective: EffectivePersonaSchema,
|
|
136
|
-
applied: z.array(PersonaAnalysisSuggestionSchema),
|
|
137
|
-
}).strict(),
|
|
138
|
-
z.object({
|
|
139
|
-
action: z.literal("sync"),
|
|
140
|
-
persona: PersonaSchema,
|
|
141
|
-
applied: PersonaLayerSchema,
|
|
142
|
-
effective: EffectivePersonaSchema,
|
|
143
|
-
}).strict(),
|
|
144
|
-
z.object({
|
|
145
|
-
action: z.literal("remove"),
|
|
146
|
-
removed: z.boolean(),
|
|
147
|
-
}).strict(),
|
|
148
|
-
]);
|
|
1
|
+
import{z}from'zod';const IndustryEnum=z['enum'](['freelance','rental','education','travel','subscription','retail']),RoleEnum=z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator']),ScopeEnum=z['enum'](['system','account']),PersonaIdentitySchema=z['object']({'region':z['string']()['optional'](),'languages':z['array'](z['string']())['optional'](),'self_description':z['string']()['optional']()})['strict'](),PersonaLayerSchema=z['object']({'identity':PersonaIdentitySchema['optional'](),'preferences':z['record'](z['unknown']())['optional'](),'strategy':z['array'](z['string']())['optional'](),'rules':z['array'](z['string']())['optional'](),'requirements':z['array'](z['string']())['optional'](),'spec':z['string']()['optional']()})['strict'](),PersonaSchema=z['object']({'version':z['number'](),'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum,'industries':z['array'](IndustryEnum),'long_term':PersonaLayerSchema,'current':PersonaLayerSchema,'updated_at':z['number']()})['strict'](),PersonaSourceSchema=z['object']({'scope':ScopeEnum,'account':z['string']()['optional'](),'part':z['enum'](['long_term','current'])})['strict'](),EffectivePersonaSchema=z['object']({'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum,'industries':z['array'](IndustryEnum),'layer':PersonaLayerSchema,'sources':z['array'](PersonaSourceSchema)})['strict'](),PersonaAnalysisSuggestionSchema=z['object']({'field':z['string'](),'value':z['unknown'](),'reason':z['string']()})['strict'](),PersonaAnalysisSchema=z['object']({'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum),'preferences':z['record'](z['unknown']()),'requirements':z['array'](z['string']()),'rules':z['array'](z['string']()),'suggestions':z['array'](PersonaAnalysisSuggestionSchema),'confidence':z['number']()})['strict']();export const PersonaOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('get'),'account':z['string']()['optional']()['describe']('Chain\x20account\x20address;\x20omitted\x20=\x20system\x20only.'),'industry':IndustryEnum['optional'](),'role':RoleEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list')})['strict'](),z['object']({'action':z['literal']('set'),'scope':ScopeEnum,'account':z['string']()['optional']()['describe']('Required\x20when\x20scope=account.'),'role':RoleEnum,'industries':z['array'](IndustryEnum)['default']([]),'long_term':PersonaLayerSchema['optional'](),'current':PersonaLayerSchema['optional']()})['strict'](),z['object']({'action':z['literal']('analyze'),'context':z['string']()['describe']('Free-form\x20context:\x20website\x20URL,\x20experience\x20summary,\x20self\x20description,\x20goal.')})['strict'](),z['object']({'action':z['literal']('apply'),'context':z['string']()['describe']('Free-form\x20context\x20whose\x20extracted\x20signals\x20feed\x20the\x20CURRENT\x20layer.'),'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum)['optional'](),'mode':z['enum'](['merge','replace'])['optional']()['describe']('merge\x20(default)\x20unions\x20strategy/rules/requirements\x20into\x20current;\x20replace\x20discards\x20the\x20existing\x20current\x20layer.')})['strict'](),z['object']({'action':z['literal']('sync'),'account':z['string']()['optional']()['describe']('Account\x20whose\x20behavior\x20(experience\x20layer)\x20is\x20merged\x20into\x20its\x20CURRENT\x20layer.\x20Omit\x20to\x20sync\x20the\x20system\x20persona.')})['strict'](),z['object']({'action':z['literal']('remove'),'scope':ScopeEnum,'account':z['string']()['optional']()})['strict']()]);export const PersonaOperationOutputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('get'),'effective':EffectivePersonaSchema,'context_text':z['string'](),'injection':z['record'](z['unknown']())})['strict'](),z['object']({'action':z['literal']('list'),'personas':z['array'](PersonaSchema),'defaults':z['array'](PersonaSchema)})['strict'](),z['object']({'action':z['literal']('set'),'persona':PersonaSchema,'line_count':z['number']()})['strict'](),z['object']({'action':z['literal']('analyze'),'analysis':PersonaAnalysisSchema})['strict'](),z['object']({'action':z['literal']('apply'),'persona':PersonaSchema,'effective':EffectivePersonaSchema,'applied':z['array'](PersonaAnalysisSuggestionSchema)})['strict'](),z['object']({'action':z['literal']('sync'),'persona':PersonaSchema,'applied':PersonaLayerSchema,'effective':EffectivePersonaSchema})['strict'](),z['object']({'action':z['literal']('remove'),'removed':z['boolean']()})['strict']()]);
|