@harrylabsj/kiwi 0.6.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/LICENSE +201 -0
- package/README.md +150 -0
- package/contracts/candidate-agent-dto-1.0.README.md +39 -0
- package/contracts/candidate-agent-dto-1.0.schema.json +172 -0
- package/contracts/interop/kiwi-buyer-message-send.json +43 -0
- package/contracts/interop/knp-data-part-examples.json +243 -0
- package/contracts/kiwi-catalog/1.0/agent-record.schema.json +78 -0
- package/contracts/kiwi-catalog/1.0/listing-record.schema.json +88 -0
- package/contracts/kiwi-catalog/1.0/listing-search-result.schema.json +60 -0
- package/contracts/negotiation/1.0/schema.json +501 -0
- package/contracts/shopping.negotiation/0.1/capabilities.schema.json +47 -0
- package/contracts/shopping.negotiation/0.1/decision.schema.json +120 -0
- package/contracts/shopping.negotiation/0.1/policy-result.schema.json +52 -0
- package/contracts/shopping.negotiation/0.1/snapshot.schema.json +172 -0
- package/dist/a2a/client/client.d.ts +33 -0
- package/dist/a2a/client/client.js +161 -0
- package/dist/a2a/client/client.js.map +1 -0
- package/dist/a2a/client/error.d.ts +35 -0
- package/dist/a2a/client/error.js +34 -0
- package/dist/a2a/client/error.js.map +1 -0
- package/dist/a2a/client/index.d.ts +29 -0
- package/dist/a2a/client/index.js +26 -0
- package/dist/a2a/client/index.js.map +1 -0
- package/dist/a2a/client/jsonrpc.d.ts +49 -0
- package/dist/a2a/client/jsonrpc.js +85 -0
- package/dist/a2a/client/jsonrpc.js.map +1 -0
- package/dist/a2a/client/parse.d.ts +18 -0
- package/dist/a2a/client/parse.js +134 -0
- package/dist/a2a/client/parse.js.map +1 -0
- package/dist/a2a/client/types.d.ts +102 -0
- package/dist/a2a/client/types.js +26 -0
- package/dist/a2a/client/types.js.map +1 -0
- package/dist/a2a/client/url-policy.d.ts +44 -0
- package/dist/a2a/client/url-policy.js +242 -0
- package/dist/a2a/client/url-policy.js.map +1 -0
- package/dist/a2a/negotiate.d.ts +68 -0
- package/dist/a2a/negotiate.js +288 -0
- package/dist/a2a/negotiate.js.map +1 -0
- package/dist/a2a/node.d.ts +37 -0
- package/dist/a2a/node.js +155 -0
- package/dist/a2a/node.js.map +1 -0
- package/dist/a2a/server/auth.d.ts +38 -0
- package/dist/a2a/server/auth.js +112 -0
- package/dist/a2a/server/auth.js.map +1 -0
- package/dist/a2a/server/card.d.ts +19 -0
- package/dist/a2a/server/card.js +81 -0
- package/dist/a2a/server/card.js.map +1 -0
- package/dist/a2a/server/errors.d.ts +109 -0
- package/dist/a2a/server/errors.js +178 -0
- package/dist/a2a/server/errors.js.map +1 -0
- package/dist/a2a/server/handler.d.ts +22 -0
- package/dist/a2a/server/handler.js +57 -0
- package/dist/a2a/server/handler.js.map +1 -0
- package/dist/a2a/server/inbound-message.d.ts +37 -0
- package/dist/a2a/server/inbound-message.js +104 -0
- package/dist/a2a/server/inbound-message.js.map +1 -0
- package/dist/a2a/server/index.d.ts +43 -0
- package/dist/a2a/server/index.js +42 -0
- package/dist/a2a/server/index.js.map +1 -0
- package/dist/a2a/server/merchant-handler.d.ts +69 -0
- package/dist/a2a/server/merchant-handler.js +316 -0
- package/dist/a2a/server/merchant-handler.js.map +1 -0
- package/dist/a2a/server/pipeline.d.ts +69 -0
- package/dist/a2a/server/pipeline.js +329 -0
- package/dist/a2a/server/pipeline.js.map +1 -0
- package/dist/a2a/server/server.d.ts +64 -0
- package/dist/a2a/server/server.js +420 -0
- package/dist/a2a/server/server.js.map +1 -0
- package/dist/a2a/server/task-registry.d.ts +31 -0
- package/dist/a2a/server/task-registry.js +67 -0
- package/dist/a2a/server/task-registry.js.map +1 -0
- package/dist/a2a/server/throttle.d.ts +154 -0
- package/dist/a2a/server/throttle.js +289 -0
- package/dist/a2a/server/throttle.js.map +1 -0
- package/dist/a2a/server/types.d.ts +191 -0
- package/dist/a2a/server/types.js +17 -0
- package/dist/a2a/server/types.js.map +1 -0
- package/dist/a2a/server/ucp.d.ts +49 -0
- package/dist/a2a/server/ucp.js +85 -0
- package/dist/a2a/server/ucp.js.map +1 -0
- package/dist/a2a/task/index.d.ts +24 -0
- package/dist/a2a/task/index.js +22 -0
- package/dist/a2a/task/index.js.map +1 -0
- package/dist/a2a/task/ledger.d.ts +48 -0
- package/dist/a2a/task/ledger.js +65 -0
- package/dist/a2a/task/ledger.js.map +1 -0
- package/dist/a2a/task/poller.d.ts +93 -0
- package/dist/a2a/task/poller.js +184 -0
- package/dist/a2a/task/poller.js.map +1 -0
- package/dist/a2a/task/state.d.ts +72 -0
- package/dist/a2a/task/state.js +119 -0
- package/dist/a2a/task/state.js.map +1 -0
- package/dist/a2a/ucp-agent.d.ts +49 -0
- package/dist/a2a/ucp-agent.js +78 -0
- package/dist/a2a/ucp-agent.js.map +1 -0
- package/dist/agent/agent-db.d.ts +31 -0
- package/dist/agent/agent-db.js +91 -0
- package/dist/agent/agent-db.js.map +1 -0
- package/dist/agent/buyer/buyer-tools.d.ts +70 -0
- package/dist/agent/buyer/buyer-tools.js +1353 -0
- package/dist/agent/buyer/buyer-tools.js.map +1 -0
- package/dist/agent/buyer/ranker.d.ts +53 -0
- package/dist/agent/buyer/ranker.js +153 -0
- package/dist/agent/buyer/ranker.js.map +1 -0
- package/dist/agent/buyer/scheduler.d.ts +58 -0
- package/dist/agent/buyer/scheduler.js +317 -0
- package/dist/agent/buyer/scheduler.js.map +1 -0
- package/dist/agent/buyer/search-loop.d.ts +42 -0
- package/dist/agent/buyer/search-loop.js +280 -0
- package/dist/agent/buyer/search-loop.js.map +1 -0
- package/dist/agent/buyer/task-store.d.ts +178 -0
- package/dist/agent/buyer/task-store.js +637 -0
- package/dist/agent/buyer/task-store.js.map +1 -0
- package/dist/agent/buyer/types.d.ts +222 -0
- package/dist/agent/buyer/types.js +124 -0
- package/dist/agent/buyer/types.js.map +1 -0
- package/dist/agent/chat-tools.d.ts +41 -0
- package/dist/agent/chat-tools.js +193 -0
- package/dist/agent/chat-tools.js.map +1 -0
- package/dist/agent/chat-tui.d.ts +49 -0
- package/dist/agent/chat-tui.js +314 -0
- package/dist/agent/chat-tui.js.map +1 -0
- package/dist/agent/connector/fake-connector.d.ts +50 -0
- package/dist/agent/connector/fake-connector.js +138 -0
- package/dist/agent/connector/fake-connector.js.map +1 -0
- package/dist/agent/connector/http-connector.d.ts +49 -0
- package/dist/agent/connector/http-connector.js +208 -0
- package/dist/agent/connector/http-connector.js.map +1 -0
- package/dist/agent/connector/types.d.ts +103 -0
- package/dist/agent/connector/types.js +97 -0
- package/dist/agent/connector/types.js.map +1 -0
- package/dist/agent/fake-chat-model.d.ts +22 -0
- package/dist/agent/fake-chat-model.js +134 -0
- package/dist/agent/fake-chat-model.js.map +1 -0
- package/dist/agent/kernel.d.ts +258 -0
- package/dist/agent/kernel.js +1099 -0
- package/dist/agent/kernel.js.map +1 -0
- package/dist/agent/memory/schema.d.ts +32 -0
- package/dist/agent/memory/schema.js +291 -0
- package/dist/agent/memory/schema.js.map +1 -0
- package/dist/agent/memory/store.d.ts +193 -0
- package/dist/agent/memory/store.js +881 -0
- package/dist/agent/memory/store.js.map +1 -0
- package/dist/agent/memory/types.d.ts +139 -0
- package/dist/agent/memory/types.js +119 -0
- package/dist/agent/memory/types.js.map +1 -0
- package/dist/agent/memory/vault.d.ts +49 -0
- package/dist/agent/memory/vault.js +125 -0
- package/dist/agent/memory/vault.js.map +1 -0
- package/dist/agent/merchant/action-candidate.d.ts +106 -0
- package/dist/agent/merchant/action-candidate.js +241 -0
- package/dist/agent/merchant/action-candidate.js.map +1 -0
- package/dist/agent/merchant/credential-broker.d.ts +67 -0
- package/dist/agent/merchant/credential-broker.js +76 -0
- package/dist/agent/merchant/credential-broker.js.map +1 -0
- package/dist/agent/merchant/fake-merchant-client.d.ts +47 -0
- package/dist/agent/merchant/fake-merchant-client.js +143 -0
- package/dist/agent/merchant/fake-merchant-client.js.map +1 -0
- package/dist/agent/merchant/merchant-client.d.ts +49 -0
- package/dist/agent/merchant/merchant-client.js +186 -0
- package/dist/agent/merchant/merchant-client.js.map +1 -0
- package/dist/agent/merchant/merchant-tools.d.ts +74 -0
- package/dist/agent/merchant/merchant-tools.js +582 -0
- package/dist/agent/merchant/merchant-tools.js.map +1 -0
- package/dist/agent/merchant/types.d.ts +119 -0
- package/dist/agent/merchant/types.js +133 -0
- package/dist/agent/merchant/types.js.map +1 -0
- package/dist/agent/mode.d.ts +32 -0
- package/dist/agent/mode.js +34 -0
- package/dist/agent/mode.js.map +1 -0
- package/dist/agent/negotiation-chat.d.ts +81 -0
- package/dist/agent/negotiation-chat.js +330 -0
- package/dist/agent/negotiation-chat.js.map +1 -0
- package/dist/agent/session.d.ts +22 -0
- package/dist/agent/session.js +164 -0
- package/dist/agent/session.js.map +1 -0
- package/dist/agent/system-prompt.d.ts +26 -0
- package/dist/agent/system-prompt.js +77 -0
- package/dist/agent/system-prompt.js.map +1 -0
- package/dist/agent/write-gate.d.ts +98 -0
- package/dist/agent/write-gate.js +76 -0
- package/dist/agent/write-gate.js.map +1 -0
- package/dist/cli.d.ts +18 -0
- package/dist/cli.js +1139 -0
- package/dist/cli.js.map +1 -0
- package/dist/commerce/data-source.d.ts +88 -0
- package/dist/commerce/data-source.js +25 -0
- package/dist/commerce/data-source.js.map +1 -0
- package/dist/commerce/erp-source.d.ts +51 -0
- package/dist/commerce/erp-source.js +184 -0
- package/dist/commerce/erp-source.js.map +1 -0
- package/dist/commerce/fake-client.d.ts +167 -0
- package/dist/commerce/fake-client.js +549 -0
- package/dist/commerce/fake-client.js.map +1 -0
- package/dist/commerce/http-client.d.ts +73 -0
- package/dist/commerce/http-client.js +284 -0
- package/dist/commerce/http-client.js.map +1 -0
- package/dist/commerce/local-db-source.d.ts +50 -0
- package/dist/commerce/local-db-source.js +162 -0
- package/dist/commerce/local-db-source.js.map +1 -0
- package/dist/commerce/shopping-cli-source.d.ts +57 -0
- package/dist/commerce/shopping-cli-source.js +206 -0
- package/dist/commerce/shopping-cli-source.js.map +1 -0
- package/dist/commerce/types.d.ts +146 -0
- package/dist/commerce/types.js +31 -0
- package/dist/commerce/types.js.map +1 -0
- package/dist/config/profile.d.ts +122 -0
- package/dist/config/profile.js +386 -0
- package/dist/config/profile.js.map +1 -0
- package/dist/contracts/negotiation-schema.d.ts +28 -0
- package/dist/contracts/negotiation-schema.js +101 -0
- package/dist/contracts/negotiation-schema.js.map +1 -0
- package/dist/contracts/schemas.d.ts +31 -0
- package/dist/contracts/schemas.js +122 -0
- package/dist/contracts/schemas.js.map +1 -0
- package/dist/counterparty/a2a-direct/index.d.ts +41 -0
- package/dist/counterparty/a2a-direct/index.js +330 -0
- package/dist/counterparty/a2a-direct/index.js.map +1 -0
- package/dist/counterparty/channel.d.ts +200 -0
- package/dist/counterparty/channel.js +61 -0
- package/dist/counterparty/channel.js.map +1 -0
- package/dist/counterparty/index.d.ts +28 -0
- package/dist/counterparty/index.js +24 -0
- package/dist/counterparty/index.js.map +1 -0
- package/dist/counterparty/platform-api/index.d.ts +41 -0
- package/dist/counterparty/platform-api/index.js +65 -0
- package/dist/counterparty/platform-api/index.js.map +1 -0
- package/dist/counterparty/registry.d.ts +51 -0
- package/dist/counterparty/registry.js +71 -0
- package/dist/counterparty/registry.js.map +1 -0
- package/dist/counterparty/shopping-cli-hosted/index.d.ts +36 -0
- package/dist/counterparty/shopping-cli-hosted/index.js +337 -0
- package/dist/counterparty/shopping-cli-hosted/index.js.map +1 -0
- package/dist/discovery/agent-card/error.d.ts +28 -0
- package/dist/discovery/agent-card/error.js +31 -0
- package/dist/discovery/agent-card/error.js.map +1 -0
- package/dist/discovery/agent-card/extensions.d.ts +20 -0
- package/dist/discovery/agent-card/extensions.js +59 -0
- package/dist/discovery/agent-card/extensions.js.map +1 -0
- package/dist/discovery/agent-card/index.d.ts +29 -0
- package/dist/discovery/agent-card/index.js +38 -0
- package/dist/discovery/agent-card/index.js.map +1 -0
- package/dist/discovery/agent-card/secrets.d.ts +30 -0
- package/dist/discovery/agent-card/secrets.js +240 -0
- package/dist/discovery/agent-card/secrets.js.map +1 -0
- package/dist/discovery/agent-card/types.d.ts +110 -0
- package/dist/discovery/agent-card/types.js +37 -0
- package/dist/discovery/agent-card/types.js.map +1 -0
- package/dist/discovery/agent-card/validate.d.ts +31 -0
- package/dist/discovery/agent-card/validate.js +210 -0
- package/dist/discovery/agent-card/validate.js.map +1 -0
- package/dist/discovery/capability/error.d.ts +23 -0
- package/dist/discovery/capability/error.js +28 -0
- package/dist/discovery/capability/error.js.map +1 -0
- package/dist/discovery/capability/index.d.ts +21 -0
- package/dist/discovery/capability/index.js +21 -0
- package/dist/discovery/capability/index.js.map +1 -0
- package/dist/discovery/capability/intersect.d.ts +56 -0
- package/dist/discovery/capability/intersect.js +137 -0
- package/dist/discovery/capability/intersect.js.map +1 -0
- package/dist/discovery/catalog-source/errors.d.ts +32 -0
- package/dist/discovery/catalog-source/errors.js +41 -0
- package/dist/discovery/catalog-source/errors.js.map +1 -0
- package/dist/discovery/catalog-source/index.d.ts +30 -0
- package/dist/discovery/catalog-source/index.js +29 -0
- package/dist/discovery/catalog-source/index.js.map +1 -0
- package/dist/discovery/catalog-source/kiwi-record.d.ts +183 -0
- package/dist/discovery/catalog-source/kiwi-record.js +72 -0
- package/dist/discovery/catalog-source/kiwi-record.js.map +1 -0
- package/dist/discovery/catalog-source/kiwi-schema.d.ts +33 -0
- package/dist/discovery/catalog-source/kiwi-schema.js +106 -0
- package/dist/discovery/catalog-source/kiwi-schema.js.map +1 -0
- package/dist/discovery/catalog-source/kiwi-source.d.ts +38 -0
- package/dist/discovery/catalog-source/kiwi-source.js +318 -0
- package/dist/discovery/catalog-source/kiwi-source.js.map +1 -0
- package/dist/discovery/catalog-source/register.d.ts +48 -0
- package/dist/discovery/catalog-source/register.js +83 -0
- package/dist/discovery/catalog-source/register.js.map +1 -0
- package/dist/discovery/catalog-source/schema.d.ts +21 -0
- package/dist/discovery/catalog-source/schema.js +63 -0
- package/dist/discovery/catalog-source/schema.js.map +1 -0
- package/dist/discovery/catalog-source/source.d.ts +45 -0
- package/dist/discovery/catalog-source/source.js +197 -0
- package/dist/discovery/catalog-source/source.js.map +1 -0
- package/dist/discovery/catalog-source/types.d.ts +122 -0
- package/dist/discovery/catalog-source/types.js +30 -0
- package/dist/discovery/catalog-source/types.js.map +1 -0
- package/dist/discovery/index.d.ts +25 -0
- package/dist/discovery/index.js +25 -0
- package/dist/discovery/index.js.map +1 -0
- package/dist/discovery/resolve.d.ts +175 -0
- package/dist/discovery/resolve.js +367 -0
- package/dist/discovery/resolve.js.map +1 -0
- package/dist/discovery/ucp/error.d.ts +25 -0
- package/dist/discovery/ucp/error.js +27 -0
- package/dist/discovery/ucp/error.js.map +1 -0
- package/dist/discovery/ucp/index.d.ts +33 -0
- package/dist/discovery/ucp/index.js +28 -0
- package/dist/discovery/ucp/index.js.map +1 -0
- package/dist/discovery/ucp/intersect.d.ts +148 -0
- package/dist/discovery/ucp/intersect.js +312 -0
- package/dist/discovery/ucp/intersect.js.map +1 -0
- package/dist/discovery/ucp/resolver.d.ts +62 -0
- package/dist/discovery/ucp/resolver.js +214 -0
- package/dist/discovery/ucp/resolver.js.map +1 -0
- package/dist/discovery/ucp/types.d.ts +97 -0
- package/dist/discovery/ucp/types.js +103 -0
- package/dist/discovery/ucp/types.js.map +1 -0
- package/dist/discovery/ucp/validate.d.ts +38 -0
- package/dist/discovery/ucp/validate.js +232 -0
- package/dist/discovery/ucp/validate.js.map +1 -0
- package/dist/discovery/ucp/vendor.d.ts +60 -0
- package/dist/discovery/ucp/vendor.js +61 -0
- package/dist/discovery/ucp/vendor.js.map +1 -0
- package/dist/doctor.d.ts +26 -0
- package/dist/doctor.js +113 -0
- package/dist/doctor.js.map +1 -0
- package/dist/exit-codes.d.ts +26 -0
- package/dist/exit-codes.js +27 -0
- package/dist/exit-codes.js.map +1 -0
- package/dist/fanout/disclosure.d.ts +138 -0
- package/dist/fanout/disclosure.js +188 -0
- package/dist/fanout/disclosure.js.map +1 -0
- package/dist/fanout/index.d.ts +32 -0
- package/dist/fanout/index.js +30 -0
- package/dist/fanout/index.js.map +1 -0
- package/dist/fanout/orchestrator.d.ts +153 -0
- package/dist/fanout/orchestrator.js +439 -0
- package/dist/fanout/orchestrator.js.map +1 -0
- package/dist/fanout/policy.d.ts +128 -0
- package/dist/fanout/policy.js +130 -0
- package/dist/fanout/policy.js.map +1 -0
- package/dist/handoff/acp-commerce.d.ts +58 -0
- package/dist/handoff/acp-commerce.js +69 -0
- package/dist/handoff/acp-commerce.js.map +1 -0
- package/dist/handoff/authorization.d.ts +127 -0
- package/dist/handoff/authorization.js +107 -0
- package/dist/handoff/authorization.js.map +1 -0
- package/dist/handoff/candidate.d.ts +94 -0
- package/dist/handoff/candidate.js +172 -0
- package/dist/handoff/candidate.js.map +1 -0
- package/dist/handoff/channel.d.ts +88 -0
- package/dist/handoff/channel.js +189 -0
- package/dist/handoff/channel.js.map +1 -0
- package/dist/handoff/completion.d.ts +44 -0
- package/dist/handoff/completion.js +136 -0
- package/dist/handoff/completion.js.map +1 -0
- package/dist/handoff/delivery.d.ts +59 -0
- package/dist/handoff/delivery.js +185 -0
- package/dist/handoff/delivery.js.map +1 -0
- package/dist/handoff/destination.d.ts +39 -0
- package/dist/handoff/destination.js +99 -0
- package/dist/handoff/destination.js.map +1 -0
- package/dist/handoff/errors.d.ts +34 -0
- package/dist/handoff/errors.js +47 -0
- package/dist/handoff/errors.js.map +1 -0
- package/dist/handoff/idempotency.d.ts +51 -0
- package/dist/handoff/idempotency.js +168 -0
- package/dist/handoff/idempotency.js.map +1 -0
- package/dist/handoff/index.d.ts +46 -0
- package/dist/handoff/index.js +48 -0
- package/dist/handoff/index.js.map +1 -0
- package/dist/handoff/ledger.d.ts +94 -0
- package/dist/handoff/ledger.js +195 -0
- package/dist/handoff/ledger.js.map +1 -0
- package/dist/handoff/lifecycle.d.ts +29 -0
- package/dist/handoff/lifecycle.js +102 -0
- package/dist/handoff/lifecycle.js.map +1 -0
- package/dist/handoff/metrics.d.ts +56 -0
- package/dist/handoff/metrics.js +78 -0
- package/dist/handoff/metrics.js.map +1 -0
- package/dist/handoff/operator-approval.d.ts +143 -0
- package/dist/handoff/operator-approval.js +287 -0
- package/dist/handoff/operator-approval.js.map +1 -0
- package/dist/handoff/order-record.d.ts +104 -0
- package/dist/handoff/order-record.js +235 -0
- package/dist/handoff/order-record.js.map +1 -0
- package/dist/handoff/package.d.ts +102 -0
- package/dist/handoff/package.js +132 -0
- package/dist/handoff/package.js.map +1 -0
- package/dist/handoff/transaction.d.ts +96 -0
- package/dist/handoff/transaction.js +263 -0
- package/dist/handoff/transaction.js.map +1 -0
- package/dist/handoff/ucp-checkout/cart-channel.d.ts +111 -0
- package/dist/handoff/ucp-checkout/cart-channel.js +370 -0
- package/dist/handoff/ucp-checkout/cart-channel.js.map +1 -0
- package/dist/handoff/ucp-checkout/cart-parse.d.ts +22 -0
- package/dist/handoff/ucp-checkout/cart-parse.js +102 -0
- package/dist/handoff/ucp-checkout/cart-parse.js.map +1 -0
- package/dist/handoff/ucp-checkout/cart-types.d.ts +93 -0
- package/dist/handoff/ucp-checkout/cart-types.js +38 -0
- package/dist/handoff/ucp-checkout/cart-types.js.map +1 -0
- package/dist/handoff/ucp-checkout/channel.d.ts +159 -0
- package/dist/handoff/ucp-checkout/channel.js +636 -0
- package/dist/handoff/ucp-checkout/channel.js.map +1 -0
- package/dist/handoff/ucp-checkout/client.d.ts +88 -0
- package/dist/handoff/ucp-checkout/client.js +228 -0
- package/dist/handoff/ucp-checkout/client.js.map +1 -0
- package/dist/handoff/ucp-checkout/endpoint.d.ts +36 -0
- package/dist/handoff/ucp-checkout/endpoint.js +145 -0
- package/dist/handoff/ucp-checkout/endpoint.js.map +1 -0
- package/dist/handoff/ucp-checkout/index.d.ts +35 -0
- package/dist/handoff/ucp-checkout/index.js +36 -0
- package/dist/handoff/ucp-checkout/index.js.map +1 -0
- package/dist/handoff/ucp-checkout/parse.d.ts +71 -0
- package/dist/handoff/ucp-checkout/parse.js +349 -0
- package/dist/handoff/ucp-checkout/parse.js.map +1 -0
- package/dist/handoff/ucp-checkout/totals.d.ts +41 -0
- package/dist/handoff/ucp-checkout/totals.js +36 -0
- package/dist/handoff/ucp-checkout/totals.js.map +1 -0
- package/dist/handoff/ucp-checkout/types.d.ts +149 -0
- package/dist/handoff/ucp-checkout/types.js +58 -0
- package/dist/handoff/ucp-checkout/types.js.map +1 -0
- package/dist/handoff/url-safety.d.ts +44 -0
- package/dist/handoff/url-safety.js +121 -0
- package/dist/handoff/url-safety.js.map +1 -0
- package/dist/i18n.d.ts +24 -0
- package/dist/i18n.js +27 -0
- package/dist/i18n.js.map +1 -0
- package/dist/negotiation/action-candidate.d.ts +97 -0
- package/dist/negotiation/action-candidate.js +160 -0
- package/dist/negotiation/action-candidate.js.map +1 -0
- package/dist/negotiation/condition/evaluator.d.ts +36 -0
- package/dist/negotiation/condition/evaluator.js +123 -0
- package/dist/negotiation/condition/evaluator.js.map +1 -0
- package/dist/negotiation/context-map/index.d.ts +23 -0
- package/dist/negotiation/context-map/index.js +22 -0
- package/dist/negotiation/context-map/index.js.map +1 -0
- package/dist/negotiation/context-map/store.d.ts +51 -0
- package/dist/negotiation/context-map/store.js +186 -0
- package/dist/negotiation/context-map/store.js.map +1 -0
- package/dist/negotiation/context-map/types.d.ts +29 -0
- package/dist/negotiation/context-map/types.js +57 -0
- package/dist/negotiation/context-map/types.js.map +1 -0
- package/dist/negotiation/domain/common.d.ts +95 -0
- package/dist/negotiation/domain/common.js +216 -0
- package/dist/negotiation/domain/common.js.map +1 -0
- package/dist/negotiation/domain/envelope.d.ts +55 -0
- package/dist/negotiation/domain/envelope.js +110 -0
- package/dist/negotiation/domain/envelope.js.map +1 -0
- package/dist/negotiation/domain/identifiers.d.ts +65 -0
- package/dist/negotiation/domain/identifiers.js +130 -0
- package/dist/negotiation/domain/identifiers.js.map +1 -0
- package/dist/negotiation/domain/objects.d.ts +149 -0
- package/dist/negotiation/domain/objects.js +335 -0
- package/dist/negotiation/domain/objects.js.map +1 -0
- package/dist/negotiation/idempotency/index.d.ts +26 -0
- package/dist/negotiation/idempotency/index.js +25 -0
- package/dist/negotiation/idempotency/index.js.map +1 -0
- package/dist/negotiation/idempotency/store.d.ts +52 -0
- package/dist/negotiation/idempotency/store.js +189 -0
- package/dist/negotiation/idempotency/store.js.map +1 -0
- package/dist/negotiation/idempotency/types.d.ts +102 -0
- package/dist/negotiation/idempotency/types.js +47 -0
- package/dist/negotiation/idempotency/types.js.map +1 -0
- package/dist/negotiation/jcs.d.ts +21 -0
- package/dist/negotiation/jcs.js +114 -0
- package/dist/negotiation/jcs.js.map +1 -0
- package/dist/negotiation/ledger/event.d.ts +142 -0
- package/dist/negotiation/ledger/event.js +206 -0
- package/dist/negotiation/ledger/event.js.map +1 -0
- package/dist/negotiation/ledger/index.d.ts +26 -0
- package/dist/negotiation/ledger/index.js +25 -0
- package/dist/negotiation/ledger/index.js.map +1 -0
- package/dist/negotiation/ledger/store.d.ts +97 -0
- package/dist/negotiation/ledger/store.js +338 -0
- package/dist/negotiation/ledger/store.js.map +1 -0
- package/dist/negotiation/prompt.d.ts +34 -0
- package/dist/negotiation/prompt.js +113 -0
- package/dist/negotiation/prompt.js.map +1 -0
- package/dist/negotiation/recovery/index.d.ts +26 -0
- package/dist/negotiation/recovery/index.js +24 -0
- package/dist/negotiation/recovery/index.js.map +1 -0
- package/dist/negotiation/recovery/outbound.d.ts +49 -0
- package/dist/negotiation/recovery/outbound.js +34 -0
- package/dist/negotiation/recovery/outbound.js.map +1 -0
- package/dist/negotiation/recovery/recover.d.ts +59 -0
- package/dist/negotiation/recovery/recover.js +486 -0
- package/dist/negotiation/recovery/recover.js.map +1 -0
- package/dist/negotiation/recovery/types.d.ts +85 -0
- package/dist/negotiation/recovery/types.js +17 -0
- package/dist/negotiation/recovery/types.js.map +1 -0
- package/dist/negotiation/state/phase.d.ts +70 -0
- package/dist/negotiation/state/phase.js +200 -0
- package/dist/negotiation/state/phase.js.map +1 -0
- package/dist/negotiation/types.d.ts +139 -0
- package/dist/negotiation/types.js +24 -0
- package/dist/negotiation/types.js.map +1 -0
- package/dist/net/safe-http.d.ts +54 -0
- package/dist/net/safe-http.js +116 -0
- package/dist/net/safe-http.js.map +1 -0
- package/dist/operator/controller.d.ts +181 -0
- package/dist/operator/controller.js +784 -0
- package/dist/operator/controller.js.map +1 -0
- package/dist/operator/runner.d.ts +128 -0
- package/dist/operator/runner.js +248 -0
- package/dist/operator/runner.js.map +1 -0
- package/dist/operator/store.d.ts +39 -0
- package/dist/operator/store.js +169 -0
- package/dist/operator/store.js.map +1 -0
- package/dist/operator/strategy.d.ts +54 -0
- package/dist/operator/strategy.js +249 -0
- package/dist/operator/strategy.js.map +1 -0
- package/dist/operator/tui.d.ts +27 -0
- package/dist/operator/tui.js +395 -0
- package/dist/operator/tui.js.map +1 -0
- package/dist/operator/types.d.ts +224 -0
- package/dist/operator/types.js +17 -0
- package/dist/operator/types.js.map +1 -0
- package/dist/product-buyer.d.ts +74 -0
- package/dist/product-buyer.js +161 -0
- package/dist/product-buyer.js.map +1 -0
- package/dist/product-cli.d.ts +56 -0
- package/dist/product-cli.js +175 -0
- package/dist/product-cli.js.map +1 -0
- package/dist/product-compat.d.ts +50 -0
- package/dist/product-compat.js +63 -0
- package/dist/product-compat.js.map +1 -0
- package/dist/product-init.d.ts +73 -0
- package/dist/product-init.js +203 -0
- package/dist/product-init.js.map +1 -0
- package/dist/product-publish.d.ts +85 -0
- package/dist/product-publish.js +216 -0
- package/dist/product-publish.js.map +1 -0
- package/dist/protocol/legacy-shopping-negotiation/adapter.d.ts +42 -0
- package/dist/protocol/legacy-shopping-negotiation/adapter.js +561 -0
- package/dist/protocol/legacy-shopping-negotiation/adapter.js.map +1 -0
- package/dist/protocol/legacy-shopping-negotiation/mapping.d.ts +78 -0
- package/dist/protocol/legacy-shopping-negotiation/mapping.js +321 -0
- package/dist/protocol/legacy-shopping-negotiation/mapping.js.map +1 -0
- package/dist/protocol/legacy-shopping-negotiation/money.d.ts +49 -0
- package/dist/protocol/legacy-shopping-negotiation/money.js +70 -0
- package/dist/protocol/legacy-shopping-negotiation/money.js.map +1 -0
- package/dist/protocol/legacy-shopping-negotiation/types.d.ts +107 -0
- package/dist/protocol/legacy-shopping-negotiation/types.js +34 -0
- package/dist/protocol/legacy-shopping-negotiation/types.js.map +1 -0
- package/dist/runtime/buyer-policy.d.ts +58 -0
- package/dist/runtime/buyer-policy.js +89 -0
- package/dist/runtime/buyer-policy.js.map +1 -0
- package/dist/runtime/fake-model.d.ts +77 -0
- package/dist/runtime/fake-model.js +307 -0
- package/dist/runtime/fake-model.js.map +1 -0
- package/dist/runtime/foreground.d.ts +56 -0
- package/dist/runtime/foreground.js +97 -0
- package/dist/runtime/foreground.js.map +1 -0
- package/dist/runtime/heartbeat.d.ts +36 -0
- package/dist/runtime/heartbeat.js +49 -0
- package/dist/runtime/heartbeat.js.map +1 -0
- package/dist/runtime/merchant-turn.d.ts +35 -0
- package/dist/runtime/merchant-turn.js +20 -0
- package/dist/runtime/merchant-turn.js.map +1 -0
- package/dist/runtime/model.d.ts +40 -0
- package/dist/runtime/model.js +86 -0
- package/dist/runtime/model.js.map +1 -0
- package/dist/runtime/negotiation-turn.d.ts +101 -0
- package/dist/runtime/negotiation-turn.js +317 -0
- package/dist/runtime/negotiation-turn.js.map +1 -0
- package/dist/runtime/tools.d.ts +64 -0
- package/dist/runtime/tools.js +236 -0
- package/dist/runtime/tools.js.map +1 -0
- package/dist/supervisor/init.d.ts +31 -0
- package/dist/supervisor/init.js +222 -0
- package/dist/supervisor/init.js.map +1 -0
- package/dist/supervisor/logs.d.ts +28 -0
- package/dist/supervisor/logs.js +101 -0
- package/dist/supervisor/logs.js.map +1 -0
- package/dist/supervisor/manage.d.ts +72 -0
- package/dist/supervisor/manage.js +419 -0
- package/dist/supervisor/manage.js.map +1 -0
- package/dist/supervisor/manifest.d.ts +69 -0
- package/dist/supervisor/manifest.js +209 -0
- package/dist/supervisor/manifest.js.map +1 -0
- package/dist/supervisor/stack-config.d.ts +79 -0
- package/dist/supervisor/stack-config.js +262 -0
- package/dist/supervisor/stack-config.js.map +1 -0
- package/dist/supervisor/wrapper.d.ts +17 -0
- package/dist/supervisor/wrapper.js +138 -0
- package/dist/supervisor/wrapper.js.map +1 -0
- package/dist/trust/identity/auth-verifier.d.ts +96 -0
- package/dist/trust/identity/auth-verifier.js +166 -0
- package/dist/trust/identity/auth-verifier.js.map +1 -0
- package/dist/trust/identity/identity-binding.d.ts +63 -0
- package/dist/trust/identity/identity-binding.js +59 -0
- package/dist/trust/identity/identity-binding.js.map +1 -0
- package/dist/trust/identity/index.d.ts +38 -0
- package/dist/trust/identity/index.js +31 -0
- package/dist/trust/identity/index.js.map +1 -0
- package/dist/trust/identity/jws.d.ts +64 -0
- package/dist/trust/identity/jws.js +178 -0
- package/dist/trust/identity/jws.js.map +1 -0
- package/dist/trust/identity/keys.d.ts +71 -0
- package/dist/trust/identity/keys.js +118 -0
- package/dist/trust/identity/keys.js.map +1 -0
- package/dist/trust/identity/message-signature.d.ts +105 -0
- package/dist/trust/identity/message-signature.js +297 -0
- package/dist/trust/identity/message-signature.js.map +1 -0
- package/dist/trust/identity/nonce.d.ts +45 -0
- package/dist/trust/identity/nonce.js +50 -0
- package/dist/trust/identity/nonce.js.map +1 -0
- package/dist/trust/identity/signature-base.d.ts +84 -0
- package/dist/trust/identity/signature-base.js +261 -0
- package/dist/trust/identity/signature-base.js.map +1 -0
- package/dist/trust/identity/trust-policy.d.ts +92 -0
- package/dist/trust/identity/trust-policy.js +95 -0
- package/dist/trust/identity/trust-policy.js.map +1 -0
- package/dist/trust/index.d.ts +21 -0
- package/dist/trust/index.js +22 -0
- package/dist/trust/index.js.map +1 -0
- package/dist/trust/records/evaluator.d.ts +76 -0
- package/dist/trust/records/evaluator.js +122 -0
- package/dist/trust/records/evaluator.js.map +1 -0
- package/dist/trust/records/index.d.ts +28 -0
- package/dist/trust/records/index.js +26 -0
- package/dist/trust/records/index.js.map +1 -0
- package/dist/trust/records/store.d.ts +75 -0
- package/dist/trust/records/store.js +339 -0
- package/dist/trust/records/store.js.map +1 -0
- package/dist/trust/records/types.d.ts +159 -0
- package/dist/trust/records/types.js +40 -0
- package/dist/trust/records/types.js.map +1 -0
- package/dist/tui/banner.d.ts +46 -0
- package/dist/tui/banner.js +99 -0
- package/dist/tui/banner.js.map +1 -0
- package/dist/tui/styles.d.ts +70 -0
- package/dist/tui/styles.js +197 -0
- package/dist/tui/styles.js.map +1 -0
- package/dist/tui/theme.d.ts +63 -0
- package/dist/tui/theme.js +136 -0
- package/dist/tui/theme.js.map +1 -0
- package/examples/profiles/buyer.deepseek.yaml +34 -0
- package/examples/profiles/buyer.fake.yaml +36 -0
- package/examples/profiles/buyer.local.yaml +40 -0
- package/examples/profiles/merchant.deepseek.yaml +32 -0
- package/examples/profiles/merchant.fake.yaml +31 -0
- package/examples/profiles/merchant.local.yaml +34 -0
- package/package.json +55 -0
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://kiwi.harrylabsj.com/schemas/negotiation/1.0/schema.json",
|
|
4
|
+
"title": "KNP/1.0 Negotiation Envelope",
|
|
5
|
+
"description": "KNP/1.0 完整 wire schema(基线 §41 #7 九类核心对象冻结):Envelope + 全部 payload 对象 $defs。Every KNP wire payload MUST be carried inside this envelope; envelope.payload 经 oneOf 约束为合法 payload,并经 allOf 约束与 envelope.action 一一对应。AcceptedNonbindingAgreement(§16)是响应/Task artifact(§8.2),不是 envelope action,单独以 $defs.accepted_nonbinding_agreement 冻结。UCP schema origin for capability com.harrylabsj.kiwi.shopping.negotiation.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"capability",
|
|
10
|
+
"protocol_version",
|
|
11
|
+
"negotiation_id",
|
|
12
|
+
"exchange_id",
|
|
13
|
+
"message_id",
|
|
14
|
+
"actor",
|
|
15
|
+
"action",
|
|
16
|
+
"created_at",
|
|
17
|
+
"payload",
|
|
18
|
+
"digest"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"capability": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"const": "com.harrylabsj.kiwi.shopping.negotiation"
|
|
24
|
+
},
|
|
25
|
+
"protocol_version": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "1.0"
|
|
28
|
+
},
|
|
29
|
+
"negotiation_id": {
|
|
30
|
+
"$ref": "#/$defs/identifier"
|
|
31
|
+
},
|
|
32
|
+
"exchange_id": {
|
|
33
|
+
"$ref": "#/$defs/identifier"
|
|
34
|
+
},
|
|
35
|
+
"message_id": {
|
|
36
|
+
"$ref": "#/$defs/identifier"
|
|
37
|
+
},
|
|
38
|
+
"in_reply_to": {
|
|
39
|
+
"$ref": "#/$defs/identifier"
|
|
40
|
+
},
|
|
41
|
+
"actor": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"enum": ["buyer", "merchant"]
|
|
44
|
+
},
|
|
45
|
+
"action": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": [
|
|
48
|
+
"inquiry",
|
|
49
|
+
"rfq",
|
|
50
|
+
"offer",
|
|
51
|
+
"counter_offer",
|
|
52
|
+
"conditional_offer",
|
|
53
|
+
"clarification",
|
|
54
|
+
"clarification_response",
|
|
55
|
+
"accept_nonbinding",
|
|
56
|
+
"withdraw",
|
|
57
|
+
"decline",
|
|
58
|
+
"cancel"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"created_at": {
|
|
62
|
+
"$ref": "#/$defs/timestamp"
|
|
63
|
+
},
|
|
64
|
+
"public_message": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"maxLength": 4096
|
|
67
|
+
},
|
|
68
|
+
"payload": {
|
|
69
|
+
"oneOf": [
|
|
70
|
+
{ "$ref": "#/$defs/inquiry" },
|
|
71
|
+
{ "$ref": "#/$defs/rfq" },
|
|
72
|
+
{ "$ref": "#/$defs/offer" },
|
|
73
|
+
{ "$ref": "#/$defs/counter_offer" },
|
|
74
|
+
{ "$ref": "#/$defs/conditional_offer" },
|
|
75
|
+
{ "$ref": "#/$defs/clarification" },
|
|
76
|
+
{ "$ref": "#/$defs/clarification_response" },
|
|
77
|
+
{ "$ref": "#/$defs/accept_nonbinding" },
|
|
78
|
+
{ "$ref": "#/$defs/withdraw" },
|
|
79
|
+
{ "$ref": "#/$defs/decline" },
|
|
80
|
+
{ "$ref": "#/$defs/cancel" }
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"digest": {
|
|
84
|
+
"$ref": "#/$defs/digest"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"allOf": [
|
|
88
|
+
{
|
|
89
|
+
"if": { "properties": { "action": { "const": "inquiry" } } },
|
|
90
|
+
"then": { "properties": { "payload": { "$ref": "#/$defs/inquiry" } } }
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"if": { "properties": { "action": { "const": "rfq" } } },
|
|
94
|
+
"then": { "properties": { "payload": { "$ref": "#/$defs/rfq" } } }
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"if": { "properties": { "action": { "const": "offer" } } },
|
|
98
|
+
"then": { "properties": { "payload": { "$ref": "#/$defs/offer" } } }
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"if": { "properties": { "action": { "const": "counter_offer" } } },
|
|
102
|
+
"then": { "properties": { "payload": { "$ref": "#/$defs/counter_offer" } } }
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"if": { "properties": { "action": { "const": "conditional_offer" } } },
|
|
106
|
+
"then": { "properties": { "payload": { "$ref": "#/$defs/conditional_offer" } } }
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"if": { "properties": { "action": { "const": "clarification" } } },
|
|
110
|
+
"then": { "properties": { "payload": { "$ref": "#/$defs/clarification" } } }
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"if": { "properties": { "action": { "const": "clarification_response" } } },
|
|
114
|
+
"then": { "properties": { "payload": { "$ref": "#/$defs/clarification_response" } } }
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"if": { "properties": { "action": { "const": "accept_nonbinding" } } },
|
|
118
|
+
"then": { "properties": { "payload": { "$ref": "#/$defs/accept_nonbinding" } } }
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"if": { "properties": { "action": { "const": "withdraw" } } },
|
|
122
|
+
"then": { "properties": { "payload": { "$ref": "#/$defs/withdraw" } } }
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"if": { "properties": { "action": { "const": "decline" } } },
|
|
126
|
+
"then": { "properties": { "payload": { "$ref": "#/$defs/decline" } } }
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"if": { "properties": { "action": { "const": "cancel" } } },
|
|
130
|
+
"then": { "properties": { "payload": { "$ref": "#/$defs/cancel" } } }
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"$defs": {
|
|
134
|
+
"identifier": {
|
|
135
|
+
"description": "KNP 标识符对端 opaque(§6):非空、≤256、无首尾空白、无控制字符。",
|
|
136
|
+
"type": "string",
|
|
137
|
+
"minLength": 1,
|
|
138
|
+
"maxLength": 256,
|
|
139
|
+
"pattern": "^\\S(.*\\S)?$"
|
|
140
|
+
},
|
|
141
|
+
"timestamp": {
|
|
142
|
+
"description": "RFC 3339 时间戳(§7.3)。",
|
|
143
|
+
"type": "string",
|
|
144
|
+
"format": "date-time"
|
|
145
|
+
},
|
|
146
|
+
"digest": {
|
|
147
|
+
"description": "KNP/1.0 摘要(§19):sha256:<64 位小写十六进制>。",
|
|
148
|
+
"type": "string",
|
|
149
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
150
|
+
},
|
|
151
|
+
"money": {
|
|
152
|
+
"description": "金额用最小单位整数(§7.1)。",
|
|
153
|
+
"type": "object",
|
|
154
|
+
"additionalProperties": true,
|
|
155
|
+
"required": ["currency", "amount_minor"],
|
|
156
|
+
"properties": {
|
|
157
|
+
"currency": { "type": "string", "pattern": "^[A-Z]{3}$" },
|
|
158
|
+
"amount_minor": { "type": "integer", "minimum": 0 }
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"quantity": {
|
|
162
|
+
"description": "数量(§7.2):value 为正数。",
|
|
163
|
+
"type": "object",
|
|
164
|
+
"additionalProperties": true,
|
|
165
|
+
"required": ["value", "unit"],
|
|
166
|
+
"properties": {
|
|
167
|
+
"value": { "type": "number", "exclusiveMinimum": 0 },
|
|
168
|
+
"unit": { "type": "string", "minLength": 1 }
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"line_item": {
|
|
172
|
+
"description": "TermSet.items 的条目(§7.4)。RFQ/普通 terms 允许无 unit_price。",
|
|
173
|
+
"type": "object",
|
|
174
|
+
"additionalProperties": true,
|
|
175
|
+
"required": ["sku", "quantity"],
|
|
176
|
+
"properties": {
|
|
177
|
+
"sku": { "type": "string", "minLength": 1 },
|
|
178
|
+
"quantity": { "$ref": "#/$defs/quantity" },
|
|
179
|
+
"unit_price": { "$ref": "#/$defs/money" }
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"line_item_priced": {
|
|
183
|
+
"description": "offer-like(Offer/CounterOffer)items:unit_price 必填(领域 requireUnitPrice,§11/§12)。",
|
|
184
|
+
"type": "object",
|
|
185
|
+
"additionalProperties": true,
|
|
186
|
+
"required": ["sku", "quantity", "unit_price"],
|
|
187
|
+
"properties": {
|
|
188
|
+
"sku": { "type": "string", "minLength": 1 },
|
|
189
|
+
"quantity": { "$ref": "#/$defs/quantity" },
|
|
190
|
+
"unit_price": { "$ref": "#/$defs/money" }
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"term_set": {
|
|
194
|
+
"description": "TermSet(§7.4):稳定顶层域 items / price_terms / fulfillment_terms / service_terms / payment_terms / valid_until。payment_terms 只表达商业条件,不得授权或执行支付。",
|
|
195
|
+
"type": "object",
|
|
196
|
+
"additionalProperties": true,
|
|
197
|
+
"properties": {
|
|
198
|
+
"items": {
|
|
199
|
+
"type": "array",
|
|
200
|
+
"items": { "$ref": "#/$defs/line_item" }
|
|
201
|
+
},
|
|
202
|
+
"price_terms": { "type": "object" },
|
|
203
|
+
"fulfillment_terms": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"properties": {
|
|
206
|
+
"delivery_before": { "$ref": "#/$defs/timestamp" }
|
|
207
|
+
},
|
|
208
|
+
"additionalProperties": true
|
|
209
|
+
},
|
|
210
|
+
"service_terms": { "type": "object" },
|
|
211
|
+
"payment_terms": { "type": "object" },
|
|
212
|
+
"valid_until": { "$ref": "#/$defs/timestamp" }
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"term_set_priced": {
|
|
216
|
+
"description": "offer-like(Offer/CounterOffer)的 TermSet:items 要求 unit_price(§11/§12)。",
|
|
217
|
+
"type": "object",
|
|
218
|
+
"allOf": [{ "$ref": "#/$defs/term_set" }],
|
|
219
|
+
"properties": {
|
|
220
|
+
"items": {
|
|
221
|
+
"type": "array",
|
|
222
|
+
"items": { "$ref": "#/$defs/line_item_priced" }
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"condition": {
|
|
227
|
+
"description": "ConditionalOffer 条件节点(§13.3/§13.4):节点必须恰含 all / any / 比较叶之一;嵌套深度不得超过根下 2 层(JSON Schema 不表达深度,由实现校验)。",
|
|
228
|
+
"oneOf": [
|
|
229
|
+
{
|
|
230
|
+
"type": "object",
|
|
231
|
+
"additionalProperties": false,
|
|
232
|
+
"required": ["all"],
|
|
233
|
+
"properties": {
|
|
234
|
+
"all": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/condition" } }
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"type": "object",
|
|
239
|
+
"additionalProperties": false,
|
|
240
|
+
"required": ["any"],
|
|
241
|
+
"properties": {
|
|
242
|
+
"any": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/condition" } }
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"type": "object",
|
|
247
|
+
"additionalProperties": false,
|
|
248
|
+
"required": ["field", "op", "value"],
|
|
249
|
+
"properties": {
|
|
250
|
+
"field": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"enum": [
|
|
253
|
+
"aggregate.total_quantity",
|
|
254
|
+
"fulfillment.batch_count",
|
|
255
|
+
"service.warranty_months",
|
|
256
|
+
"commercial.commitment_days"
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
"op": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"enum": ["eq", "neq", "gt", "gte", "lt", "lte", "in"]
|
|
262
|
+
},
|
|
263
|
+
"value": {
|
|
264
|
+
"description": "op=in 时必须是含 number|string 的非空数组(§13.4);其余 op 必须为标量。",
|
|
265
|
+
"oneOf": [
|
|
266
|
+
{ "type": "number" },
|
|
267
|
+
{ "type": "string" },
|
|
268
|
+
{
|
|
269
|
+
"type": "array",
|
|
270
|
+
"minItems": 1,
|
|
271
|
+
"items": { "oneOf": [{ "type": "number" }, { "type": "string" }] }
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"allOf": [
|
|
277
|
+
{
|
|
278
|
+
"if": { "properties": { "op": { "not": { "const": "in" } } } },
|
|
279
|
+
"then": { "properties": { "value": { "not": { "type": "array" } } } }
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"if": { "properties": { "op": { "const": "in" } } },
|
|
283
|
+
"then": {
|
|
284
|
+
"properties": {
|
|
285
|
+
"value": { "type": "array", "minItems": 1 }
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
"inquiry": {
|
|
294
|
+
"description": "Inquiry(§9):非约束性提问,MUST NOT 被解读为购买意图。subject / questions 均可选。",
|
|
295
|
+
"type": "object",
|
|
296
|
+
"additionalProperties": true,
|
|
297
|
+
"required": ["type"],
|
|
298
|
+
"properties": {
|
|
299
|
+
"type": { "const": "inquiry" },
|
|
300
|
+
"subject": { "type": "object" },
|
|
301
|
+
"questions": {
|
|
302
|
+
"type": "array",
|
|
303
|
+
"items": {
|
|
304
|
+
"type": "object",
|
|
305
|
+
"additionalProperties": true,
|
|
306
|
+
"required": ["code"],
|
|
307
|
+
"properties": { "code": { "type": "string", "minLength": 1 } }
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"rfq": {
|
|
313
|
+
"description": "RFQ(§10):请求商业条款。至少含一个 item。",
|
|
314
|
+
"type": "object",
|
|
315
|
+
"additionalProperties": true,
|
|
316
|
+
"required": ["type", "items"],
|
|
317
|
+
"properties": {
|
|
318
|
+
"type": { "const": "rfq" },
|
|
319
|
+
"items": {
|
|
320
|
+
"type": "array",
|
|
321
|
+
"minItems": 1,
|
|
322
|
+
"items": { "$ref": "#/$defs/line_item" }
|
|
323
|
+
},
|
|
324
|
+
"requested_terms": {
|
|
325
|
+
"type": "object",
|
|
326
|
+
"additionalProperties": true,
|
|
327
|
+
"properties": { "delivery_before": { "$ref": "#/$defs/timestamp" } }
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"offer": {
|
|
332
|
+
"description": "Offer(§11):非约束性商业提案。MUST NOT 描述为订单或销售完成。",
|
|
333
|
+
"type": "object",
|
|
334
|
+
"additionalProperties": true,
|
|
335
|
+
"required": ["type", "offer_id", "terms"],
|
|
336
|
+
"properties": {
|
|
337
|
+
"type": { "const": "offer" },
|
|
338
|
+
"offer_id": { "$ref": "#/$defs/identifier" },
|
|
339
|
+
"terms": { "$ref": "#/$defs/term_set_priced" }
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"counter_offer": {
|
|
343
|
+
"description": "CounterOffer(§12):回应先前的 offer-like 对象;用完整 proposed_terms,不得用任意可执行 patch 表达式。",
|
|
344
|
+
"type": "object",
|
|
345
|
+
"additionalProperties": true,
|
|
346
|
+
"required": ["type", "offer_id", "responding_to_offer_id", "proposed_terms"],
|
|
347
|
+
"properties": {
|
|
348
|
+
"type": { "const": "counter_offer" },
|
|
349
|
+
"offer_id": { "$ref": "#/$defs/identifier" },
|
|
350
|
+
"responding_to_offer_id": { "$ref": "#/$defs/identifier" },
|
|
351
|
+
"proposed_terms": { "$ref": "#/$defs/term_set_priced" }
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"conditional_offer": {
|
|
355
|
+
"description": "ConditionalOffer(§13):确定性替代条款。conditions 可空(等价 base_terms)。",
|
|
356
|
+
"type": "object",
|
|
357
|
+
"additionalProperties": true,
|
|
358
|
+
"required": ["type", "offer_id", "base_terms"],
|
|
359
|
+
"properties": {
|
|
360
|
+
"type": { "const": "conditional_offer" },
|
|
361
|
+
"offer_id": { "$ref": "#/$defs/identifier" },
|
|
362
|
+
"responding_to_offer_id": { "$ref": "#/$defs/identifier" },
|
|
363
|
+
"base_terms": { "$ref": "#/$defs/term_set" },
|
|
364
|
+
"conditions": {
|
|
365
|
+
"type": "array",
|
|
366
|
+
"items": {
|
|
367
|
+
"type": "object",
|
|
368
|
+
"additionalProperties": true,
|
|
369
|
+
"required": ["when", "then_terms"],
|
|
370
|
+
"properties": {
|
|
371
|
+
"when": { "$ref": "#/$defs/condition" },
|
|
372
|
+
"then_terms": { "$ref": "#/$defs/term_set" }
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"clarification": {
|
|
379
|
+
"description": "Clarification(§14):请求缺失或歧义信息。至少一个问题;MUST NOT 改变已接受的商业条款。",
|
|
380
|
+
"type": "object",
|
|
381
|
+
"additionalProperties": true,
|
|
382
|
+
"required": ["type", "questions"],
|
|
383
|
+
"properties": {
|
|
384
|
+
"type": { "const": "clarification" },
|
|
385
|
+
"questions": {
|
|
386
|
+
"type": "array",
|
|
387
|
+
"minItems": 1,
|
|
388
|
+
"items": {
|
|
389
|
+
"type": "object",
|
|
390
|
+
"additionalProperties": true,
|
|
391
|
+
"required": ["field"],
|
|
392
|
+
"properties": {
|
|
393
|
+
"field": { "type": "string", "minLength": 1 },
|
|
394
|
+
"reason": { "type": "string", "minLength": 1 }
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"clarification_response": {
|
|
401
|
+
"description": "clarification_response(§8.2/§14):KNP/1.0 未冻结 payload 形状,唯一约束是 type 判别;对被回答的澄清消息的引用由 envelope in_reply_to 承担。",
|
|
402
|
+
"type": "object",
|
|
403
|
+
"additionalProperties": true,
|
|
404
|
+
"required": ["type"],
|
|
405
|
+
"properties": { "type": { "const": "clarification_response" } }
|
|
406
|
+
},
|
|
407
|
+
"accept_nonbinding": {
|
|
408
|
+
"description": "AcceptNonbinding(§15):接受一个活跃的 offer-like 对象;terms_digest 必须匹配 offer terms 的规范摘要。",
|
|
409
|
+
"type": "object",
|
|
410
|
+
"additionalProperties": true,
|
|
411
|
+
"required": ["type", "offer_id", "terms_digest"],
|
|
412
|
+
"properties": {
|
|
413
|
+
"type": { "const": "accept_nonbinding" },
|
|
414
|
+
"offer_id": { "$ref": "#/$defs/identifier" },
|
|
415
|
+
"terms_digest": { "$ref": "#/$defs/digest" }
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"withdraw": {
|
|
419
|
+
"description": "Withdraw(§17.2):撤回本人仍可撤回的 message / offer-like 对象。scope=negotiation 时不得携带 target_offer_id(以 envelope negotiation_id 为准)。",
|
|
420
|
+
"type": "object",
|
|
421
|
+
"additionalProperties": true,
|
|
422
|
+
"required": ["type", "scope", "target_message_id"],
|
|
423
|
+
"properties": {
|
|
424
|
+
"type": { "const": "withdraw" },
|
|
425
|
+
"scope": { "type": "string", "enum": ["offer", "negotiation"] },
|
|
426
|
+
"target_message_id": { "$ref": "#/$defs/identifier" },
|
|
427
|
+
"target_offer_id": { "$ref": "#/$defs/identifier" },
|
|
428
|
+
"reason_code": { "type": "string", "minLength": 1 }
|
|
429
|
+
},
|
|
430
|
+
"allOf": [
|
|
431
|
+
{
|
|
432
|
+
"if": { "properties": { "scope": { "const": "negotiation" } } },
|
|
433
|
+
"then": { "properties": { "target_offer_id": false } }
|
|
434
|
+
}
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
"decline": {
|
|
438
|
+
"description": "Decline(§17.3):商业决定,非协议错误。scope=negotiation 时不得携带 target_offer_id(以 envelope negotiation_id 为准)。",
|
|
439
|
+
"type": "object",
|
|
440
|
+
"additionalProperties": true,
|
|
441
|
+
"required": ["type", "scope", "target_message_id"],
|
|
442
|
+
"properties": {
|
|
443
|
+
"type": { "const": "decline" },
|
|
444
|
+
"scope": { "type": "string", "enum": ["offer", "negotiation"] },
|
|
445
|
+
"target_message_id": { "$ref": "#/$defs/identifier" },
|
|
446
|
+
"target_offer_id": { "$ref": "#/$defs/identifier" },
|
|
447
|
+
"reason_code": { "type": "string", "minLength": 1 }
|
|
448
|
+
},
|
|
449
|
+
"allOf": [
|
|
450
|
+
{
|
|
451
|
+
"if": { "properties": { "scope": { "const": "negotiation" } } },
|
|
452
|
+
"then": { "properties": { "target_offer_id": false } }
|
|
453
|
+
}
|
|
454
|
+
]
|
|
455
|
+
},
|
|
456
|
+
"cancel": {
|
|
457
|
+
"description": "Cancel(§17.4):把非终态 negotiation 转到 CANCELLED。KNP/1.0 不管理订单。",
|
|
458
|
+
"type": "object",
|
|
459
|
+
"additionalProperties": true,
|
|
460
|
+
"required": ["type"],
|
|
461
|
+
"properties": { "type": { "const": "cancel" } }
|
|
462
|
+
},
|
|
463
|
+
"accepted_nonbinding_agreement": {
|
|
464
|
+
"description": "AcceptedNonbindingAgreement(§16):成功接受后产生的响应 / Task artifact(§8.2,不是 envelope action)。三个副作用标志 MUST 为 false。",
|
|
465
|
+
"type": "object",
|
|
466
|
+
"additionalProperties": true,
|
|
467
|
+
"required": [
|
|
468
|
+
"type",
|
|
469
|
+
"agreement_id",
|
|
470
|
+
"negotiation_id",
|
|
471
|
+
"accepted_offer_id",
|
|
472
|
+
"agreed_terms",
|
|
473
|
+
"terms_digest",
|
|
474
|
+
"accepted_by",
|
|
475
|
+
"created_at",
|
|
476
|
+
"binding_effect",
|
|
477
|
+
"creates_order",
|
|
478
|
+
"reserves_inventory",
|
|
479
|
+
"authorizes_payment"
|
|
480
|
+
],
|
|
481
|
+
"properties": {
|
|
482
|
+
"type": { "const": "accepted_nonbinding_agreement" },
|
|
483
|
+
"agreement_id": { "$ref": "#/$defs/identifier" },
|
|
484
|
+
"negotiation_id": { "$ref": "#/$defs/identifier" },
|
|
485
|
+
"accepted_offer_id": { "$ref": "#/$defs/identifier" },
|
|
486
|
+
"agreed_terms": { "$ref": "#/$defs/term_set" },
|
|
487
|
+
"terms_digest": { "$ref": "#/$defs/digest" },
|
|
488
|
+
"accepted_by": {
|
|
489
|
+
"type": "array",
|
|
490
|
+
"minItems": 1,
|
|
491
|
+
"items": { "type": "string", "enum": ["buyer", "merchant"] }
|
|
492
|
+
},
|
|
493
|
+
"created_at": { "$ref": "#/$defs/timestamp" },
|
|
494
|
+
"binding_effect": { "const": "nonbinding" },
|
|
495
|
+
"creates_order": { "const": false },
|
|
496
|
+
"reserves_inventory": { "const": false },
|
|
497
|
+
"authorizes_payment": { "const": false }
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://kiwi.dev/contracts/shopping.negotiation/0.1/capabilities.schema.json",
|
|
4
|
+
"title": "shopping.negotiation/0.1 CommerceCapabilities",
|
|
5
|
+
"description": "CommerceGateway capability and protocol advertisement. Kiwi fails closed when a required capability or protocol version is missing. Frozen for protocol version shopping.negotiation/0.1.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["protocol_versions", "backend", "capabilities"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"protocol_versions": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": { "type": "string", "minLength": 1 },
|
|
13
|
+
"minItems": 1,
|
|
14
|
+
"description": "Negotiation protocol versions the gateway supports. Must include shopping.negotiation/0.1."
|
|
15
|
+
},
|
|
16
|
+
"backend": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["local_marketplace", "external_platform"]
|
|
19
|
+
},
|
|
20
|
+
"capabilities": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": [
|
|
24
|
+
"catalog_read",
|
|
25
|
+
"inventory_read",
|
|
26
|
+
"consultation_read",
|
|
27
|
+
"consultation_write",
|
|
28
|
+
"price_negotiate",
|
|
29
|
+
"webhook",
|
|
30
|
+
"orders"
|
|
31
|
+
],
|
|
32
|
+
"properties": {
|
|
33
|
+
"catalog_read": { "type": "boolean" },
|
|
34
|
+
"inventory_read": { "type": "boolean" },
|
|
35
|
+
"consultation_read": { "type": "boolean" },
|
|
36
|
+
"consultation_write": { "type": "boolean" },
|
|
37
|
+
"price_negotiate": { "type": "boolean" },
|
|
38
|
+
"webhook": { "type": "boolean" },
|
|
39
|
+
"orders": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"const": false,
|
|
42
|
+
"description": "shopping.negotiation/0.1 never creates orders. Must be false."
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://kiwi.dev/contracts/shopping.negotiation/0.1/decision.schema.json",
|
|
4
|
+
"title": "shopping.negotiation/0.1 NegotiationDecision",
|
|
5
|
+
"description": "The single write-intent payload an agent submits via submit_negotiation_decision. Frozen for protocol version shopping.negotiation/0.1.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"protocol_version",
|
|
10
|
+
"conversation_id",
|
|
11
|
+
"in_reply_to_message_id",
|
|
12
|
+
"action",
|
|
13
|
+
"open_issues",
|
|
14
|
+
"public_message",
|
|
15
|
+
"reason_codes",
|
|
16
|
+
"request_human_review"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"protocol_version": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"const": "shopping.negotiation/0.1"
|
|
22
|
+
},
|
|
23
|
+
"conversation_id": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1,
|
|
26
|
+
"maxLength": 128
|
|
27
|
+
},
|
|
28
|
+
"in_reply_to_message_id": {
|
|
29
|
+
"type": "integer",
|
|
30
|
+
"minimum": 1
|
|
31
|
+
},
|
|
32
|
+
"action": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": ["ask", "propose", "counter", "accept_nonbinding", "decline", "escalate"]
|
|
35
|
+
},
|
|
36
|
+
"proposal": {
|
|
37
|
+
"$ref": "#/$defs/proposal"
|
|
38
|
+
},
|
|
39
|
+
"open_issues": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 500 },
|
|
42
|
+
"maxItems": 32
|
|
43
|
+
},
|
|
44
|
+
"public_message": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"maxLength": 2000
|
|
47
|
+
},
|
|
48
|
+
"confidence": {
|
|
49
|
+
"type": "number",
|
|
50
|
+
"minimum": 0,
|
|
51
|
+
"maximum": 1
|
|
52
|
+
},
|
|
53
|
+
"reason_codes": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 64 },
|
|
56
|
+
"maxItems": 32
|
|
57
|
+
},
|
|
58
|
+
"request_human_review": {
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"$defs": {
|
|
63
|
+
"proposal": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"required": [
|
|
67
|
+
"sku",
|
|
68
|
+
"quantity",
|
|
69
|
+
"unit_price",
|
|
70
|
+
"currency",
|
|
71
|
+
"stock",
|
|
72
|
+
"delivery",
|
|
73
|
+
"after_sales_policy_refs",
|
|
74
|
+
"valid_until"
|
|
75
|
+
],
|
|
76
|
+
"properties": {
|
|
77
|
+
"sku": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
78
|
+
"quantity": { "type": "integer", "minimum": 1, "maximum": 100000 },
|
|
79
|
+
"unit_price": { "type": "number", "minimum": 0 },
|
|
80
|
+
"currency": { "type": "string", "minLength": 3, "maxLength": 8 },
|
|
81
|
+
"stock": { "$ref": "#/$defs/stock" },
|
|
82
|
+
"delivery": { "$ref": "#/$defs/delivery" },
|
|
83
|
+
"after_sales_policy_refs": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
86
|
+
"maxItems": 32
|
|
87
|
+
},
|
|
88
|
+
"valid_until": { "type": "string", "format": "date-time" }
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"stock": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"required": ["status", "quantity", "observed_at", "reserved"],
|
|
95
|
+
"properties": {
|
|
96
|
+
"status": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"enum": ["available", "low", "out_of_stock", "unknown"]
|
|
99
|
+
},
|
|
100
|
+
"quantity": { "type": "integer", "minimum": 0 },
|
|
101
|
+
"observed_at": { "type": "string", "format": "date-time" },
|
|
102
|
+
"reserved": {
|
|
103
|
+
"type": "boolean",
|
|
104
|
+
"const": false,
|
|
105
|
+
"description": "Negotiation never reserves inventory. Must be false."
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"delivery": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"required": ["eta_start", "eta_end", "fee"],
|
|
113
|
+
"properties": {
|
|
114
|
+
"eta_start": { "type": "string", "format": "date-time" },
|
|
115
|
+
"eta_end": { "type": "string", "format": "date-time" },
|
|
116
|
+
"fee": { "type": "number", "minimum": 0 }
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|