@salesforce/b2c-cli 2.3.1 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dev.js +8 -8
- package/bin/run.js +5 -7
- package/content/guidance/b2c/b2c-business-manager-extensions/SKILL.md +361 -0
- package/content/guidance/b2c/b2c-business-manager-extensions/references/EXTENSIONS-XML.md +458 -0
- package/content/guidance/b2c/b2c-controllers/SKILL.md +301 -0
- package/content/guidance/b2c/b2c-controllers/references/CLASSIC-PATTERNS.md +335 -0
- package/content/guidance/b2c/b2c-controllers/references/SFRA-PATTERNS.md +400 -0
- package/content/guidance/b2c/b2c-custom-api-development/SKILL.md +281 -0
- package/content/guidance/b2c/b2c-custom-api-development/references/CONTRACT.md +142 -0
- package/content/guidance/b2c/b2c-custom-api-development/references/IMPLEMENTATION.md +153 -0
- package/content/guidance/b2c/b2c-custom-api-development/references/TESTING.md +118 -0
- package/content/guidance/b2c/b2c-custom-caches/SKILL.md +279 -0
- package/content/guidance/b2c/b2c-custom-job-steps/SKILL.md +520 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/CHUNK-ORIENTED.md +377 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/JOBS-XML.md +212 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/STEPTYPES-JSON.md +373 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/TASK-ORIENTED.md +344 -0
- package/content/guidance/b2c/b2c-custom-objects/SKILL.md +327 -0
- package/content/guidance/b2c/b2c-custom-objects/references/OCAPI-SEARCH.md +298 -0
- package/content/guidance/b2c/b2c-forms/SKILL.md +242 -0
- package/content/guidance/b2c/b2c-forms/references/FORM-XML.md +409 -0
- package/content/guidance/b2c/b2c-hooks/SKILL.md +500 -0
- package/content/guidance/b2c/b2c-hooks/references/OCAPI-SCAPI-HOOKS.md +403 -0
- package/content/guidance/b2c/b2c-hooks/references/ORDER-HOOK-LIFECYCLE.md +169 -0
- package/content/guidance/b2c/b2c-hooks/references/SYSTEM-HOOKS.md +433 -0
- package/content/guidance/b2c/b2c-isml/SKILL.md +320 -0
- package/content/guidance/b2c/b2c-isml/references/EXPRESSIONS.md +366 -0
- package/content/guidance/b2c/b2c-isml/references/TAGS.md +443 -0
- package/content/guidance/b2c/b2c-localization/SKILL.md +344 -0
- package/content/guidance/b2c/b2c-localization/references/PATTERNS.md +407 -0
- package/content/guidance/b2c/b2c-logging/SKILL.md +352 -0
- package/content/guidance/b2c/b2c-logging/references/LOG-FILES.md +282 -0
- package/content/guidance/b2c/b2c-metadata/SKILL.md +406 -0
- package/content/guidance/b2c/b2c-metadata/references/SYSTEM-OBJECTS.md +320 -0
- package/content/guidance/b2c/b2c-metadata/references/XML-EXAMPLES.md +366 -0
- package/content/guidance/b2c/b2c-onboarding/SKILL.md +154 -0
- package/content/guidance/b2c/b2c-ordering/SKILL.md +391 -0
- package/content/guidance/b2c/b2c-page-designer/SKILL.md +410 -0
- package/content/guidance/b2c/b2c-page-designer/references/ATTRIBUTE-TYPES.md +436 -0
- package/content/guidance/b2c/b2c-page-designer/references/META-DEFINITIONS.md +340 -0
- package/content/guidance/b2c/b2c-querying-data/SKILL.md +289 -0
- package/content/guidance/b2c/b2c-querying-data/references/PERFORMANCE-APIS.md +74 -0
- package/content/guidance/b2c/b2c-scapi-admin/SKILL.md +53 -0
- package/content/guidance/b2c/b2c-scapi-admin/references/CLIENT-EXAMPLES.md +440 -0
- package/content/guidance/b2c/b2c-scapi-admin/references/INTEGRATION-PATTERNS.md +518 -0
- package/content/guidance/b2c/b2c-scapi-admin/references/OAUTH-SCOPES.md +337 -0
- package/content/guidance/b2c/b2c-scapi-shopper/SKILL.md +56 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/CHECKOUT-FLOW.md +466 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/CLIENT-EXAMPLES.md +351 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/COMMON-PATTERNS.md +390 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/SCOPES.md +290 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/SKILL.md +420 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/references/PASSKEYS.md +126 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/references/SESSION-BRIDGE.md +267 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/references/TOKEN-LIFECYCLE.md +367 -0
- package/content/guidance/b2c/b2c-webservices/SKILL.md +318 -0
- package/content/guidance/b2c/b2c-webservices/references/FTP-SERVICES.md +524 -0
- package/content/guidance/b2c/b2c-webservices/references/HTTP-SERVICES.md +578 -0
- package/content/guidance/b2c/b2c-webservices/references/SERVICES-XML.md +351 -0
- package/content/guidance/b2c/b2c-webservices/references/SOAP-SERVICES.md +587 -0
- package/content/guidance/b2c-cli/b2c-am/SKILL.md +277 -0
- package/content/guidance/b2c-cli/b2c-bm-users-roles/SKILL.md +210 -0
- package/content/guidance/b2c-cli/b2c-cap/SKILL.md +131 -0
- package/content/guidance/b2c-cli/b2c-cip/SKILL.md +116 -0
- package/content/guidance/b2c-cli/b2c-cip/references/KNOWN_TABLES.md +105 -0
- package/content/guidance/b2c-cli/b2c-cip/references/SALES_ANALYSIS.md +50 -0
- package/content/guidance/b2c-cli/b2c-cip/references/STARTER_QUERIES.md +147 -0
- package/content/guidance/b2c-cli/b2c-code/SKILL.md +146 -0
- package/content/guidance/b2c-cli/b2c-config/SKILL.md +481 -0
- package/content/guidance/b2c-cli/b2c-content/SKILL.md +176 -0
- package/content/guidance/b2c-cli/b2c-debug/SKILL.md +138 -0
- package/content/guidance/b2c-cli/b2c-docs/SKILL.md +301 -0
- package/content/guidance/b2c-cli/b2c-ecdn/SKILL.md +137 -0
- package/content/guidance/b2c-cli/b2c-ecdn/references/ADVANCED.md +97 -0
- package/content/guidance/b2c-cli/b2c-ecdn/references/SECURITY.md +75 -0
- package/content/guidance/b2c-cli/b2c-import-set-migrations/SKILL.md +265 -0
- package/content/guidance/b2c-cli/b2c-job/SKILL.md +70 -0
- package/content/guidance/b2c-cli/b2c-job/references/EXPORT.md +121 -0
- package/content/guidance/b2c-cli/b2c-job/references/IMPORT.md +55 -0
- package/content/guidance/b2c-cli/b2c-job/references/RUN-AND-MONITOR.md +148 -0
- package/content/guidance/b2c-cli/b2c-logs/SKILL.md +249 -0
- package/content/guidance/b2c-cli/b2c-metrics/SKILL.md +315 -0
- package/content/guidance/b2c-cli/b2c-mrt/SKILL.md +207 -0
- package/content/guidance/b2c-cli/b2c-mrt/references/BUNDLE-COMMANDS.md +203 -0
- package/content/guidance/b2c-cli/b2c-mrt/references/ENVIRONMENT-COMMANDS.md +218 -0
- package/content/guidance/b2c-cli/b2c-mrt/references/PROJECT-COMMANDS.md +154 -0
- package/content/guidance/b2c-cli/b2c-sandbox/SKILL.md +112 -0
- package/content/guidance/b2c-cli/b2c-scapi-custom/SKILL.md +126 -0
- package/content/guidance/b2c-cli/b2c-scapi-schemas/SKILL.md +70 -0
- package/content/guidance/b2c-cli/b2c-scapi-schemas/references/CLI-EXAMPLES.md +108 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/SKILL.md +57 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/references/IMPORT-OPTIONS.md +118 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/references/METADATA-XML.md +381 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/references/WORKFLOWS.md +182 -0
- package/content/guidance/b2c-cli/b2c-sites/SKILL.md +112 -0
- package/content/guidance/b2c-cli/b2c-slas/SKILL.md +182 -0
- package/content/guidance/b2c-cli/b2c-webdav/SKILL.md +186 -0
- package/content/guidance/b2c-ops/b2c-checkout-triage/SKILL.md +68 -0
- package/content/guidance/b2c-ops/b2c-edge-traffic-triage/SKILL.md +69 -0
- package/content/guidance/b2c-ops/b2c-job-health/SKILL.md +80 -0
- package/content/guidance/b2c-ops/b2c-job-health/references/job-logs.md +21 -0
- package/content/guidance/b2c-ops/b2c-order-failure-triage/SKILL.md +66 -0
- package/content/guidance/b2c-ops/b2c-order-failure-triage/references/order-evidence.md +87 -0
- package/content/guidance/b2c-ops/b2c-production-triage/SKILL.md +88 -0
- package/content/guidance/b2c-ops/b2c-production-triage/references/escalation.md +57 -0
- package/content/guidance/index.json +1969 -0
- package/content/guidance/storefront-next/sfnext-accessibility/SKILL.md +103 -0
- package/content/guidance/storefront-next/sfnext-accessibility/references/checklist.md +64 -0
- package/content/guidance/storefront-next/sfnext-analytics-consent/SKILL.md +91 -0
- package/content/guidance/storefront-next/sfnext-analytics-consent/references/CUSTOM-ADAPTER.md +49 -0
- package/content/guidance/storefront-next/sfnext-authentication/SKILL.md +127 -0
- package/content/guidance/storefront-next/sfnext-authentication/references/COOKIES.md +39 -0
- package/content/guidance/storefront-next/sfnext-authentication/references/LOGIN-FLOWS.md +59 -0
- package/content/guidance/storefront-next/sfnext-commerce-features/SKILL.md +67 -0
- package/content/guidance/storefront-next/sfnext-commerce-features/references/FEATURE-PREREQUISITES.md +37 -0
- package/content/guidance/storefront-next/sfnext-components/SKILL.md +153 -0
- package/content/guidance/storefront-next/sfnext-components/references/COMPONENT-AUTHORING.md +118 -0
- package/content/guidance/storefront-next/sfnext-components/references/SHAPE-TOKENS.md +51 -0
- package/content/guidance/storefront-next/sfnext-components/references/STORYBOOK.md +54 -0
- package/content/guidance/storefront-next/sfnext-components/references/TOKEN-SYSTEM.md +53 -0
- package/content/guidance/storefront-next/sfnext-components/references/TROUBLESHOOTING.md +19 -0
- package/content/guidance/storefront-next/sfnext-configuration/SKILL.md +163 -0
- package/content/guidance/storefront-next/sfnext-configuration/references/ENV-VARIABLES.md +55 -0
- package/content/guidance/storefront-next/sfnext-configuration/references/MULTI-SITE-URLS.md +137 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/SKILL.md +140 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/ACTIONS.md +53 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/API-CLIENTS.md +34 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/LOADERS.md +73 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/SCAPI-FETCHER.md +39 -0
- package/content/guidance/storefront-next/sfnext-deployment/SKILL.md +127 -0
- package/content/guidance/storefront-next/sfnext-deployment/references/MRT-DEPLOYMENT.md +59 -0
- package/content/guidance/storefront-next/sfnext-extensions/SKILL.md +118 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/ACTION-HOOKS.md +57 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/BASE-AUDIT.md +68 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/CLI-AND-INSTALL.md +58 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/EXTENSION-EXAMPLES.md +79 -0
- package/content/guidance/storefront-next/sfnext-hybrid-storefronts/SKILL.md +93 -0
- package/content/guidance/storefront-next/sfnext-hybrid-storefronts/references/HYBRID-PROXY-CONFIG.md +86 -0
- package/content/guidance/storefront-next/sfnext-i18n/SKILL.md +152 -0
- package/content/guidance/storefront-next/sfnext-i18n/references/locale-config.md +35 -0
- package/content/guidance/storefront-next/sfnext-overview/SKILL.md +101 -0
- package/content/guidance/storefront-next/sfnext-page-designer/SKILL.md +202 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/BUSINESS-MANAGER.md +46 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/COMPONENT-REGISTRY.md +111 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/DECORATOR-PATTERNS.md +168 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/REVIEW-CHECKLIST.md +83 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/TROUBLESHOOTING.md +35 -0
- package/content/guidance/storefront-next/sfnext-performance/SKILL.md +102 -0
- package/content/guidance/storefront-next/sfnext-performance/references/PERFORMANCE-REVIEW-CHECKLIST.md +85 -0
- package/content/guidance/storefront-next/sfnext-performance/references/SUSPENSE-AND-STREAMING.md +58 -0
- package/content/guidance/storefront-next/sfnext-project-setup/SKILL.md +147 -0
- package/content/guidance/storefront-next/sfnext-project-setup/references/PROJECT-STRUCTURE.md +61 -0
- package/content/guidance/storefront-next/sfnext-project-setup/references/SCRIPTS.md +47 -0
- package/content/guidance/storefront-next/sfnext-project-setup/references/SFNEXT-CLI.md +63 -0
- package/content/guidance/storefront-next/sfnext-quality-gates/SKILL.md +70 -0
- package/content/guidance/storefront-next/sfnext-quality-gates/references/lint-and-budgets.md +39 -0
- package/content/guidance/storefront-next/sfnext-revalidation/SKILL.md +121 -0
- package/content/guidance/storefront-next/sfnext-revalidation/references/POLICIES-AND-TAGS.md +55 -0
- package/content/guidance/storefront-next/sfnext-routing/SKILL.md +123 -0
- package/content/guidance/storefront-next/sfnext-routing/references/ROUTE-CONVENTIONS.md +65 -0
- package/content/guidance/storefront-next/sfnext-routing/references/URLS-AND-SEO-ROUTES.md +22 -0
- package/content/guidance/storefront-next/sfnext-scapi/SKILL.md +126 -0
- package/content/guidance/storefront-next/sfnext-scapi/references/WORKED-EXAMPLE.md +39 -0
- package/content/guidance/storefront-next/sfnext-security/SKILL.md +129 -0
- package/content/guidance/storefront-next/sfnext-security/references/COOKIE-DOMAIN.md +39 -0
- package/content/guidance/storefront-next/sfnext-security/references/TURNSTILE.md +43 -0
- package/content/guidance/storefront-next/sfnext-seo/SKILL.md +95 -0
- package/content/guidance/storefront-next/sfnext-seo/references/MULTI-DOMAIN-BASE-PATH.md +17 -0
- package/content/guidance/storefront-next/sfnext-seo/references/SEO-ROUTES.md +31 -0
- package/content/guidance/storefront-next/sfnext-state-management/SKILL.md +114 -0
- package/content/guidance/storefront-next/sfnext-state-management/references/PATTERNS.md +45 -0
- package/content/guidance/storefront-next/sfnext-testing/SKILL.md +151 -0
- package/content/guidance/storefront-next/sfnext-testing/references/E2E.md +38 -0
- package/content/guidance/storefront-next/sfnext-testing/references/STORYBOOK-PATTERNS.md +97 -0
- package/content/guidance/storefront-next/sfnext-testing/references/UNIT-AND-ROUTE-TESTS.md +60 -0
- package/content/guidance/storefront-next/sfnext-theming/SKILL.md +104 -0
- package/content/guidance/storefront-next/sfnext-theming/references/REBRAND-CHECKLIST.md +29 -0
- package/dist/commands/cap/install.d.ts +1 -0
- package/dist/commands/cap/list.d.ts +1 -0
- package/dist/commands/cap/pull.d.ts +1 -0
- package/dist/commands/cap/tasks.d.ts +1 -0
- package/dist/commands/cap/uninstall.d.ts +1 -0
- package/dist/commands/cip/describe.d.ts +1 -0
- package/dist/commands/cip/query.d.ts +1 -0
- package/dist/commands/cip/report/bot-traffic-share.d.ts +1 -0
- package/dist/commands/cip/report/checkout-funnel-dropoff.d.ts +1 -0
- package/dist/commands/cip/report/controller-error-rate-trend.d.ts +1 -0
- package/dist/commands/cip/report/controller-health-scorecard.d.ts +1 -0
- package/dist/commands/cip/report/customer-registration-trends.d.ts +1 -0
- package/dist/commands/cip/report/discount-depth-breakdown.d.ts +1 -0
- package/dist/commands/cip/report/inventory-stockout-by-location.d.ts +1 -0
- package/dist/commands/cip/report/new-vs-returning-buyer-revenue.d.ts +1 -0
- package/dist/commands/cip/report/ocapi-client-usage.d.ts +1 -0
- package/dist/commands/cip/report/ocapi-requests.d.ts +1 -0
- package/dist/commands/cip/report/payment-method-performance.d.ts +1 -0
- package/dist/commands/cip/report/product-co-purchase-analysis.d.ts +1 -0
- package/dist/commands/cip/report/promotion-discount-analysis.d.ts +1 -0
- package/dist/commands/cip/report/promotion-roi-leaderboard.d.ts +1 -0
- package/dist/commands/cip/report/recommender-effectiveness.d.ts +1 -0
- package/dist/commands/cip/report/remote-include-performance.d.ts +1 -0
- package/dist/commands/cip/report/revenue-by-channel.d.ts +1 -0
- package/dist/commands/cip/report/sales-analytics.d.ts +1 -0
- package/dist/commands/cip/report/sales-summary.d.ts +1 -0
- package/dist/commands/cip/report/scapi-cache-hit-ratio.d.ts +1 -0
- package/dist/commands/cip/report/scapi-error-rate-by-status.d.ts +1 -0
- package/dist/commands/cip/report/scapi-latency-distribution.d.ts +1 -0
- package/dist/commands/cip/report/scapi-traffic-latency.d.ts +1 -0
- package/dist/commands/cip/report/search-query-performance.d.ts +1 -0
- package/dist/commands/cip/report/top-referrers.d.ts +1 -0
- package/dist/commands/cip/report/top-selling-products.d.ts +1 -0
- package/dist/commands/cip/report/zero-result-searches.d.ts +1 -0
- package/dist/commands/cip/tables.d.ts +1 -0
- package/dist/commands/code/activate.d.ts +1 -0
- package/dist/commands/code/delete.d.ts +1 -0
- package/dist/commands/code/deploy.d.ts +1 -0
- package/dist/commands/code/download.d.ts +1 -0
- package/dist/commands/code/watch.d.ts +1 -0
- package/dist/commands/commands/search.d.ts +35 -0
- package/dist/commands/commands/search.js +85 -0
- package/dist/commands/commands/search.js.map +1 -0
- package/dist/commands/content/export.d.ts +1 -0
- package/dist/commands/content/list.d.ts +1 -0
- package/dist/commands/content/validate.d.ts +1 -0
- package/dist/commands/debug/cli.d.ts +1 -0
- package/dist/commands/debug/index.d.ts +1 -0
- package/dist/commands/docs/cache.d.ts +1 -0
- package/dist/commands/docs/download.d.ts +1 -0
- package/dist/commands/docs/read.d.ts +1 -0
- package/dist/commands/docs/schema.d.ts +1 -0
- package/dist/commands/docs/search.d.ts +1 -0
- package/dist/commands/docs/skill.d.ts +41 -0
- package/dist/commands/docs/skill.js +183 -0
- package/dist/commands/docs/skill.js.map +1 -0
- package/dist/commands/ecdn/cache/purge.d.ts +1 -0
- package/dist/commands/ecdn/certificates/add.d.ts +1 -0
- package/dist/commands/ecdn/certificates/delete.d.ts +1 -0
- package/dist/commands/ecdn/certificates/list.d.ts +1 -0
- package/dist/commands/ecdn/certificates/update.d.ts +1 -0
- package/dist/commands/ecdn/certificates/validate.d.ts +1 -0
- package/dist/commands/ecdn/cipher-suites/get.d.ts +1 -0
- package/dist/commands/ecdn/cipher-suites/update.d.ts +1 -0
- package/dist/commands/ecdn/firewall/create.d.ts +1 -0
- package/dist/commands/ecdn/firewall/delete.d.ts +1 -0
- package/dist/commands/ecdn/firewall/get.d.ts +1 -0
- package/dist/commands/ecdn/firewall/list.d.ts +1 -0
- package/dist/commands/ecdn/firewall/reorder.d.ts +1 -0
- package/dist/commands/ecdn/firewall/update.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/create.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/delete.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/get.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/list.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/update.d.ts +1 -0
- package/dist/commands/ecdn/logpush/ownership.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/create.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/delete.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/get.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/rules/delete.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/rules/update.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/update.d.ts +1 -0
- package/dist/commands/ecdn/mtls/create.d.ts +1 -0
- package/dist/commands/ecdn/mtls/delete.d.ts +1 -0
- package/dist/commands/ecdn/mtls/get.d.ts +1 -0
- package/dist/commands/ecdn/mtls/issue.d.ts +1 -0
- package/dist/commands/ecdn/mtls/list.d.ts +1 -0
- package/dist/commands/ecdn/mtls/setup.d.ts +1 -0
- package/dist/commands/ecdn/origin-headers/delete.d.ts +1 -0
- package/dist/commands/ecdn/origin-headers/get.d.ts +1 -0
- package/dist/commands/ecdn/origin-headers/set.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/notifications/create.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/notifications/delete.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/notifications/list.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/create.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/delete.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/get.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/list.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/update.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/scripts/get.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/scripts/list.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/create.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/delete.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/get.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/list.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/update.d.ts +1 -0
- package/dist/commands/ecdn/security/get.d.ts +1 -0
- package/dist/commands/ecdn/security/update.d.ts +1 -0
- package/dist/commands/ecdn/speed/get.d.ts +1 -0
- package/dist/commands/ecdn/speed/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/groups/list.d.ts +1 -0
- package/dist/commands/ecdn/waf/groups/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/managed-rules/list.d.ts +1 -0
- package/dist/commands/ecdn/waf/managed-rules/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/migrate.d.ts +1 -0
- package/dist/commands/ecdn/waf/owasp/get.d.ts +1 -0
- package/dist/commands/ecdn/waf/owasp/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/rules/get.d.ts +1 -0
- package/dist/commands/ecdn/waf/rules/list.d.ts +1 -0
- package/dist/commands/ecdn/waf/rules/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/rulesets/list.d.ts +1 -0
- package/dist/commands/ecdn/waf/rulesets/update.d.ts +1 -0
- package/dist/commands/ecdn/zones/create.d.ts +1 -0
- package/dist/commands/ecdn/zones/list.d.ts +1 -0
- package/dist/commands/job/execution/delete.d.ts +1 -0
- package/dist/commands/job/export.d.ts +1 -0
- package/dist/commands/job/import-set.d.ts +1 -0
- package/dist/commands/job/import.d.ts +1 -0
- package/dist/commands/job/log.d.ts +1 -0
- package/dist/commands/job/run.d.ts +1 -0
- package/dist/commands/job/run.js +1 -1
- package/dist/commands/job/run.js.map +1 -1
- package/dist/commands/job/search.d.ts +1 -0
- package/dist/commands/job/wait.d.ts +1 -0
- package/dist/commands/logs/get.d.ts +1 -0
- package/dist/commands/logs/list.d.ts +1 -0
- package/dist/commands/logs/tail.d.ts +1 -0
- package/dist/commands/metrics/controller.d.ts +1 -0
- package/dist/commands/metrics/ecdn.d.ts +1 -0
- package/dist/commands/metrics/mrt.d.ts +1 -0
- package/dist/commands/metrics/ocapi.d.ts +1 -0
- package/dist/commands/metrics/overall.d.ts +1 -0
- package/dist/commands/metrics/sales.d.ts +1 -0
- package/dist/commands/metrics/scapi-hooks.d.ts +1 -0
- package/dist/commands/metrics/scapi.d.ts +1 -0
- package/dist/commands/metrics/third-party.d.ts +1 -0
- package/dist/commands/mrt/bundle/delete.d.ts +1 -0
- package/dist/commands/mrt/bundle/deploy.d.ts +1 -0
- package/dist/commands/mrt/bundle/download.d.ts +1 -0
- package/dist/commands/mrt/bundle/history.d.ts +1 -0
- package/dist/commands/mrt/bundle/list.d.ts +1 -0
- package/dist/commands/mrt/bundle/save.d.ts +1 -0
- package/dist/commands/mrt/bundle/upload-v2.d.ts +1 -0
- package/dist/commands/mrt/env/access-control/list.d.ts +1 -0
- package/dist/commands/mrt/env/b2c.d.ts +1 -0
- package/dist/commands/mrt/env/clone.d.ts +1 -0
- package/dist/commands/mrt/env/create.d.ts +1 -0
- package/dist/commands/mrt/env/delete.d.ts +1 -0
- package/dist/commands/mrt/env/get.d.ts +1 -0
- package/dist/commands/mrt/env/invalidate.d.ts +1 -0
- package/dist/commands/mrt/env/list.d.ts +1 -0
- package/dist/commands/mrt/env/redirect/clone.d.ts +1 -0
- package/dist/commands/mrt/env/redirect/create.d.ts +1 -0
- package/dist/commands/mrt/env/redirect/delete.d.ts +1 -0
- package/dist/commands/mrt/env/redirect/list.d.ts +1 -0
- package/dist/commands/mrt/env/update.d.ts +1 -0
- package/dist/commands/mrt/env/var/delete.d.ts +1 -0
- package/dist/commands/mrt/env/var/list.d.ts +1 -0
- package/dist/commands/mrt/env/var/push.d.ts +1 -0
- package/dist/commands/mrt/env/var/set.d.ts +1 -0
- package/dist/commands/mrt/org/b2c.d.ts +1 -0
- package/dist/commands/mrt/org/cert/create.d.ts +1 -0
- package/dist/commands/mrt/org/cert/delete.d.ts +1 -0
- package/dist/commands/mrt/org/cert/get.d.ts +1 -0
- package/dist/commands/mrt/org/cert/list.d.ts +1 -0
- package/dist/commands/mrt/org/cert/restart-validation.d.ts +1 -0
- package/dist/commands/mrt/org/list.d.ts +1 -0
- package/dist/commands/mrt/org/member/add.d.ts +1 -0
- package/dist/commands/mrt/org/member/get.d.ts +1 -0
- package/dist/commands/mrt/org/member/list.d.ts +1 -0
- package/dist/commands/mrt/org/member/remove.d.ts +1 -0
- package/dist/commands/mrt/org/member/update.d.ts +1 -0
- package/dist/commands/mrt/project/create.d.ts +1 -0
- package/dist/commands/mrt/project/delete.d.ts +1 -0
- package/dist/commands/mrt/project/get.d.ts +1 -0
- package/dist/commands/mrt/project/list.d.ts +1 -0
- package/dist/commands/mrt/project/member/add.d.ts +1 -0
- package/dist/commands/mrt/project/member/get.d.ts +1 -0
- package/dist/commands/mrt/project/member/list.d.ts +1 -0
- package/dist/commands/mrt/project/member/remove.d.ts +1 -0
- package/dist/commands/mrt/project/member/update.d.ts +1 -0
- package/dist/commands/mrt/project/notification/delete.d.ts +1 -0
- package/dist/commands/mrt/project/notification/get.d.ts +1 -0
- package/dist/commands/mrt/project/update.d.ts +1 -0
- package/dist/commands/mrt/save-credentials.d.ts +1 -0
- package/dist/commands/mrt/tail-logs.d.ts +1 -0
- package/dist/commands/mrt/user/api-key.d.ts +1 -0
- package/dist/commands/mrt/user/email-prefs.d.ts +1 -0
- package/dist/commands/mrt/user/profile.d.ts +1 -0
- package/dist/commands/scaffold/init.js +2 -1
- package/dist/commands/scaffold/init.js.map +1 -1
- package/dist/commands/scapi/custom/status.d.ts +1 -0
- package/dist/commands/scapi/schemas/get.d.ts +9 -0
- package/dist/commands/scapi/schemas/get.js +51 -19
- package/dist/commands/scapi/schemas/get.js.map +1 -1
- package/dist/commands/scapi/schemas/list.d.ts +6 -0
- package/dist/commands/scapi/schemas/list.js +28 -18
- package/dist/commands/scapi/schemas/list.js.map +1 -1
- package/dist/commands/setup/get.d.ts +36 -0
- package/dist/commands/setup/get.js +67 -0
- package/dist/commands/setup/get.js.map +1 -0
- package/dist/commands/setup/ide/tsserver-plugin.d.ts +1 -0
- package/dist/commands/setup/ide/vscode-types.d.ts +1 -0
- package/dist/commands/setup/index.js +4 -3
- package/dist/commands/setup/index.js.map +1 -1
- package/dist/commands/setup/inspect.d.ts +1 -0
- package/dist/commands/setup/inspect.js +15 -4
- package/dist/commands/setup/inspect.js.map +1 -1
- package/dist/commands/setup/instance/create.d.ts +9 -0
- package/dist/commands/setup/instance/create.js +22 -6
- package/dist/commands/setup/instance/create.js.map +1 -1
- package/dist/commands/setup/instance/list.d.ts +1 -0
- package/dist/commands/setup/instance/list.js +3 -4
- package/dist/commands/setup/instance/list.js.map +1 -1
- package/dist/commands/setup/instance/remove.d.ts +1 -0
- package/dist/commands/setup/instance/remove.js +5 -5
- package/dist/commands/setup/instance/remove.js.map +1 -1
- package/dist/commands/setup/instance/set-active.d.ts +6 -0
- package/dist/commands/setup/instance/set-active.js +20 -5
- package/dist/commands/setup/instance/set-active.js.map +1 -1
- package/dist/commands/setup/openshell.d.ts +1 -0
- package/dist/commands/setup/set.d.ts +37 -0
- package/dist/commands/setup/set.js +87 -0
- package/dist/commands/setup/set.js.map +1 -0
- package/dist/commands/setup/skills.d.ts +1 -0
- package/dist/commands/setup/unset.d.ts +37 -0
- package/dist/commands/setup/unset.js +55 -0
- package/dist/commands/setup/unset.js.map +1 -0
- package/dist/commands/slas/client/create.d.ts +1 -0
- package/dist/commands/slas/client/delete.d.ts +1 -0
- package/dist/commands/slas/client/get.d.ts +1 -0
- package/dist/commands/slas/client/list.d.ts +1 -0
- package/dist/commands/slas/client/open.d.ts +1 -0
- package/dist/commands/slas/client/update.d.ts +1 -0
- package/dist/commands/slas/token.d.ts +1 -0
- package/dist/commands/slas/token.js +2 -1
- package/dist/commands/slas/token.js.map +1 -1
- package/dist/commands/webdav/get.d.ts +1 -0
- package/dist/commands/webdav/rm.d.ts +1 -0
- package/dist/help.d.ts +25 -0
- package/dist/help.js +96 -0
- package/dist/help.js.map +1 -0
- package/dist/lib/scaffold/generate-helper.js +3 -2
- package/dist/lib/scaffold/generate-helper.js.map +1 -1
- package/dist/lib/skills.d.ts +19 -0
- package/dist/lib/skills.js +75 -0
- package/dist/lib/skills.js.map +1 -0
- package/dist/utils/cip/command.d.ts +1 -0
- package/dist/utils/ecdn/zone-command.d.ts +1 -0
- package/dist/utils/setup/config-field-command.d.ts +25 -0
- package/dist/utils/setup/config-field-command.js +41 -0
- package/dist/utils/setup/config-field-command.js.map +1 -0
- package/dist/utils/slas/client.d.ts +1 -0
- package/oclif.manifest.json +20802 -16968
- package/package.json +11 -5
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
# Admin API OAuth Scopes Reference
|
|
2
|
+
|
|
3
|
+
> **Note:** This reference is a snapshot for quick lookup during development. For the current scope catalog, newly-added scopes, and official scope definitions, consult `docs_read commerce-api/auth-z-scope-catalog`.
|
|
4
|
+
|
|
5
|
+
Complete reference for OAuth scopes used with Account Manager for Admin APIs.
|
|
6
|
+
|
|
7
|
+
## Scope Format
|
|
8
|
+
|
|
9
|
+
Admin API scopes follow this pattern:
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
SALESFORCE_COMMERCE_API:{tenant_id} {api_scope_1} {api_scope_2} ...
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
**Example:**
|
|
16
|
+
```
|
|
17
|
+
SALESFORCE_COMMERCE_API:zzte_053 sfcc.catalogs sfcc.products.rw sfcc.orders
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Scope Suffix Convention
|
|
21
|
+
|
|
22
|
+
- No suffix = read-only access
|
|
23
|
+
- `.rw` suffix = read and write access
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
sfcc.products # Read only
|
|
27
|
+
sfcc.products.rw # Read and write
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Getting Tokens with Scopes
|
|
31
|
+
|
|
32
|
+
### Via CLI
|
|
33
|
+
|
|
34
|
+
`b2c auth token` accepts multiple scopes: repeat `--auth-scope`, or pass a comma-separated list. Unlike the SCAPI subcommands (e.g. `b2c scapi custom status`), `b2c auth token` does **not** auto-inject the tenant scope — you must include `SALESFORCE_COMMERCE_API:<tenant_id>` yourself alongside the API scopes:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Repeatable flag form — include the tenant scope plus API scopes
|
|
38
|
+
b2c auth token \
|
|
39
|
+
--auth-scope "SALESFORCE_COMMERCE_API:zzte_053" \
|
|
40
|
+
--auth-scope sfcc.orders \
|
|
41
|
+
--auth-scope sfcc.products
|
|
42
|
+
|
|
43
|
+
# Comma-separated form (equivalent)
|
|
44
|
+
b2c auth token --auth-scope "SALESFORCE_COMMERCE_API:zzte_053,sfcc.orders,sfcc.products.rw"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Via cURL
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
curl "https://account.demandware.com/dwsso/oauth2/access_token" \
|
|
51
|
+
-u "$CLIENT_ID:$CLIENT_SECRET" \
|
|
52
|
+
-d "grant_type=client_credentials" \
|
|
53
|
+
--data-urlencode "scope=SALESFORCE_COMMERCE_API:$TENANT_ID sfcc.catalogs sfcc.products.rw"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Product API Scopes
|
|
57
|
+
|
|
58
|
+
| Scope | API Family | Access Level |
|
|
59
|
+
|-------|------------|--------------|
|
|
60
|
+
| `sfcc.catalogs` | Catalogs | Read catalogs, categories |
|
|
61
|
+
| `sfcc.catalogs.rw` | Catalogs | Create/update/delete catalogs |
|
|
62
|
+
| `sfcc.products` | Products | Read products |
|
|
63
|
+
| `sfcc.products.rw` | Products | Create/update/delete products |
|
|
64
|
+
|
|
65
|
+
**Use Cases:**
|
|
66
|
+
- Catalog sync from PIM system
|
|
67
|
+
- Product data export for analytics
|
|
68
|
+
- Bulk product updates
|
|
69
|
+
|
|
70
|
+
## Order API Scopes
|
|
71
|
+
|
|
72
|
+
| Scope | API Family | Access Level |
|
|
73
|
+
|-------|------------|--------------|
|
|
74
|
+
| `sfcc.orders` | Orders | Read orders |
|
|
75
|
+
| `sfcc.orders.rw` | Orders | Update order status, shipping |
|
|
76
|
+
|
|
77
|
+
**Use Cases:**
|
|
78
|
+
- Order export to OMS/WMS
|
|
79
|
+
- Order status updates from fulfillment
|
|
80
|
+
- Order analytics and reporting
|
|
81
|
+
|
|
82
|
+
## Inventory API Scopes
|
|
83
|
+
|
|
84
|
+
| Scope | API Family | Access Level |
|
|
85
|
+
|-------|------------|--------------|
|
|
86
|
+
| `sfcc.inventory.availability` | Availability | Read inventory levels |
|
|
87
|
+
| `sfcc.inventory.availability.rw` | Availability | Update inventory |
|
|
88
|
+
| `sfcc.inventory.reservations` | Reservations | Read reservations |
|
|
89
|
+
| `sfcc.inventory.reservations.rw` | Reservations | Create/update reservations |
|
|
90
|
+
| `sfcc.inventory.impex-inventory` | IMPEX | Bulk inventory import (read) |
|
|
91
|
+
| `sfcc.inventory.impex-inventory.rw` | IMPEX | Bulk inventory import (write) |
|
|
92
|
+
| `sfcc.inventory.impex-graphs` | IMPEX | Location graph exports |
|
|
93
|
+
|
|
94
|
+
**Use Cases:**
|
|
95
|
+
- Real-time inventory sync from WMS
|
|
96
|
+
- Bulk inventory file imports
|
|
97
|
+
- Stock allocation across channels
|
|
98
|
+
- Location graph management
|
|
99
|
+
|
|
100
|
+
## Pricing API Scopes
|
|
101
|
+
|
|
102
|
+
| Scope | API Family | Access Level |
|
|
103
|
+
|-------|------------|--------------|
|
|
104
|
+
| `sfcc.promotions` | Promotions | Read promotions |
|
|
105
|
+
| `sfcc.promotions.rw` | Promotions | Create/update promotions |
|
|
106
|
+
| `sfcc.gift-certificates` | Gift Certificates | Read gift certificates |
|
|
107
|
+
| `sfcc.gift-certificates.rw` | Gift Certificates | Manage gift certificates |
|
|
108
|
+
| `sfcc.source-codes` | Source Codes | Read source code groups |
|
|
109
|
+
| `sfcc.source-codes.rw` | Source Codes | Manage source code groups |
|
|
110
|
+
|
|
111
|
+
**Use Cases:**
|
|
112
|
+
- Promotion data export
|
|
113
|
+
- Dynamic promotion creation
|
|
114
|
+
- Campaign management integration
|
|
115
|
+
- Gift certificate management
|
|
116
|
+
|
|
117
|
+
## Customer Management Scopes
|
|
118
|
+
|
|
119
|
+
| Scope | API Family | Access Level |
|
|
120
|
+
|-------|------------|--------------|
|
|
121
|
+
| `sfcc.shopper-customers` | Customers | Read customer data |
|
|
122
|
+
| `sfcc.shopper-customers.rw` | Customers | Create/update customer profiles |
|
|
123
|
+
| `sfcc.consents` | Consents | Read customer consent preferences |
|
|
124
|
+
| `sfcc.consents.rw` | Consents | Manage consent preferences |
|
|
125
|
+
| `sfcc.customergroups` | Customer Groups | Read customer groups |
|
|
126
|
+
| `sfcc.customergroups.rw` | Customer Groups | Manage customer groups |
|
|
127
|
+
| `sfcc.customerlists` | Customer Lists | Read customer lists |
|
|
128
|
+
| `sfcc.customerlists.rw` | Customer Lists | Manage customer lists |
|
|
129
|
+
|
|
130
|
+
**Use Cases:**
|
|
131
|
+
- Customer data sync to CRM
|
|
132
|
+
- Customer profile enrichment
|
|
133
|
+
- Consent management (GDPR/CCPA)
|
|
134
|
+
- Customer segmentation
|
|
135
|
+
|
|
136
|
+
## Configuration Scopes
|
|
137
|
+
|
|
138
|
+
| Scope | API Family | Access Level |
|
|
139
|
+
|-------|------------|--------------|
|
|
140
|
+
| `sfcc.cors-preferences` | CORS | Read CORS configuration |
|
|
141
|
+
| `sfcc.cors-preferences.rw` | CORS | Manage CORS settings |
|
|
142
|
+
| `sfcc.preferences` | Preferences | Read site preferences |
|
|
143
|
+
| `sfcc.timeouts` | Timeouts | Read timeout configuration |
|
|
144
|
+
| `sfcc.timeouts.rw` | Timeouts | Manage timeout settings |
|
|
145
|
+
|
|
146
|
+
**Use Cases:**
|
|
147
|
+
- Automated configuration management
|
|
148
|
+
- CI/CD pipeline configuration
|
|
149
|
+
|
|
150
|
+
## Experience Scopes
|
|
151
|
+
|
|
152
|
+
| Scope | API Family | Access Level |
|
|
153
|
+
|-------|------------|--------------|
|
|
154
|
+
| `sfcc.experiences.rw` | Experiences | Manage merchandiser experiences |
|
|
155
|
+
|
|
156
|
+
**Use Cases:**
|
|
157
|
+
- Experience/campaign management
|
|
158
|
+
- A/B testing automation
|
|
159
|
+
|
|
160
|
+
## CDN API Scopes
|
|
161
|
+
|
|
162
|
+
| Scope | API Family | Access Level |
|
|
163
|
+
|-------|------------|--------------|
|
|
164
|
+
| `sfcc.cdn-zones` | CDN Zones | Read CDN configuration |
|
|
165
|
+
| `sfcc.cdn-zones.rw` | CDN Zones | Configure CDN zones |
|
|
166
|
+
|
|
167
|
+
**Use Cases:**
|
|
168
|
+
- CDN configuration automation
|
|
169
|
+
- Certificate management
|
|
170
|
+
- WAF rule management
|
|
171
|
+
|
|
172
|
+
## Developer API Scopes
|
|
173
|
+
|
|
174
|
+
| Scope | API Family | Access Level |
|
|
175
|
+
|-------|------------|--------------|
|
|
176
|
+
| `sfcc.custom-apis` | Custom APIs | Read custom API status |
|
|
177
|
+
| `sfcc.custom-apis.rw` | Custom APIs | Manage custom API registration |
|
|
178
|
+
| `sfcc.scapi-schemas` | SCAPI Schemas | Read SCAPI schema registry |
|
|
179
|
+
|
|
180
|
+
**Use Cases:**
|
|
181
|
+
- Check custom API deployment status
|
|
182
|
+
- Automated deployment pipelines
|
|
183
|
+
- Schema discovery and documentation
|
|
184
|
+
|
|
185
|
+
## SLAS Admin Scopes
|
|
186
|
+
|
|
187
|
+
| Scope | API Family | Access Level |
|
|
188
|
+
|-------|------------|--------------|
|
|
189
|
+
| `sfcc.slas-admin` | SLAS Admin | Read SLAS configuration |
|
|
190
|
+
| `sfcc.slas-admin.rw` | SLAS Admin | Manage SLAS clients |
|
|
191
|
+
|
|
192
|
+
**Use Cases:**
|
|
193
|
+
- Automated SLAS client provisioning
|
|
194
|
+
- Client configuration management
|
|
195
|
+
|
|
196
|
+
## Recommended Scope Sets
|
|
197
|
+
|
|
198
|
+
### Order Management Integration
|
|
199
|
+
|
|
200
|
+
```
|
|
201
|
+
SALESFORCE_COMMERCE_API:{tenant_id} sfcc.orders.rw sfcc.inventory.availability.rw
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Catalog/Product Sync
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
SALESFORCE_COMMERCE_API:{tenant_id} sfcc.catalogs.rw sfcc.products.rw
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Inventory Sync
|
|
211
|
+
|
|
212
|
+
```
|
|
213
|
+
SALESFORCE_COMMERCE_API:{tenant_id} sfcc.inventory.availability.rw sfcc.inventory.impex-inventory
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Customer Data Sync
|
|
217
|
+
|
|
218
|
+
```
|
|
219
|
+
SALESFORCE_COMMERCE_API:{tenant_id} sfcc.shopper-customers.rw sfcc.orders
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Read-Only Analytics/Reporting
|
|
223
|
+
|
|
224
|
+
```
|
|
225
|
+
SALESFORCE_COMMERCE_API:{tenant_id} sfcc.orders sfcc.products sfcc.shopper-customers
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### Full Admin Access
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
SALESFORCE_COMMERCE_API:{tenant_id} sfcc.catalogs.rw sfcc.products.rw sfcc.orders.rw sfcc.inventory.availability.rw sfcc.promotions.rw sfcc.shopper-customers.rw
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## Best Practices
|
|
235
|
+
|
|
236
|
+
### Principle of Least Privilege
|
|
237
|
+
|
|
238
|
+
Request only the scopes your integration needs:
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
# Bad - too broad
|
|
242
|
+
b2c auth token --auth-scope "SALESFORCE_COMMERCE_API:zzte_053,sfcc.catalogs.rw,sfcc.products.rw,sfcc.orders.rw,sfcc.inventory.availability.rw"
|
|
243
|
+
|
|
244
|
+
# Good - only what's needed for order export (tenant scope is still required)
|
|
245
|
+
b2c auth token --auth-scope "SALESFORCE_COMMERCE_API:zzte_053" --auth-scope sfcc.orders
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Separate Clients for Different Integrations
|
|
249
|
+
|
|
250
|
+
Create dedicated API clients for different systems:
|
|
251
|
+
|
|
252
|
+
| Integration | Client | Scopes |
|
|
253
|
+
|-------------|--------|--------|
|
|
254
|
+
| PIM Sync | `pim-integration` | `sfcc.products.rw sfcc.catalogs.rw` |
|
|
255
|
+
| OMS Sync | `oms-integration` | `sfcc.orders.rw` |
|
|
256
|
+
| WMS Sync | `wms-integration` | `sfcc.inventory.availability.rw` |
|
|
257
|
+
|
|
258
|
+
### Token Caching
|
|
259
|
+
|
|
260
|
+
Admin tokens are valid for ~30 minutes. Cache and reuse:
|
|
261
|
+
|
|
262
|
+
```javascript
|
|
263
|
+
let tokenCache = null;
|
|
264
|
+
let tokenExpiry = 0;
|
|
265
|
+
|
|
266
|
+
async function getAdminToken() {
|
|
267
|
+
const now = Date.now();
|
|
268
|
+
|
|
269
|
+
// Return cached token if still valid (with 60s buffer)
|
|
270
|
+
if (tokenCache && tokenExpiry > now + 60000) {
|
|
271
|
+
return tokenCache;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
const response = await fetch('https://account.demandware.com/dwsso/oauth2/access_token', {
|
|
275
|
+
method: 'POST',
|
|
276
|
+
headers: {
|
|
277
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
278
|
+
'Authorization': `Basic ${btoa(clientId + ':' + clientSecret)}`
|
|
279
|
+
},
|
|
280
|
+
body: `grant_type=client_credentials&scope=SALESFORCE_COMMERCE_API:${tenantId} ${scopes}`
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
const data = await response.json();
|
|
284
|
+
tokenCache = data.access_token;
|
|
285
|
+
tokenExpiry = now + (data.expires_in * 1000);
|
|
286
|
+
|
|
287
|
+
return tokenCache;
|
|
288
|
+
}
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
### Audit Scope Usage
|
|
292
|
+
|
|
293
|
+
Periodically review what scopes are actually being used:
|
|
294
|
+
|
|
295
|
+
```javascript
|
|
296
|
+
// Decode token to see granted scopes
|
|
297
|
+
const tokenParts = adminToken.split('.');
|
|
298
|
+
const payload = JSON.parse(atob(tokenParts[1]));
|
|
299
|
+
console.log('Granted scopes:', payload.scope);
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
## Scope Errors
|
|
303
|
+
|
|
304
|
+
### 403 Forbidden - Missing Scope
|
|
305
|
+
|
|
306
|
+
```json
|
|
307
|
+
{
|
|
308
|
+
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/forbidden",
|
|
309
|
+
"title": "Forbidden",
|
|
310
|
+
"detail": "Access denied. Missing required scope: sfcc.orders.rw"
|
|
311
|
+
}
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
**Solution:** Add the missing scope to your token request.
|
|
315
|
+
|
|
316
|
+
### 403 Forbidden - Missing Tenant Scope
|
|
317
|
+
|
|
318
|
+
```json
|
|
319
|
+
{
|
|
320
|
+
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/forbidden",
|
|
321
|
+
"title": "Forbidden",
|
|
322
|
+
"detail": "Access denied for organization f_ecom_zzte_053"
|
|
323
|
+
}
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
**Solution:** Include `SALESFORCE_COMMERCE_API:{tenant_id}` in your scope request.
|
|
327
|
+
|
|
328
|
+
### Invalid Scope Error
|
|
329
|
+
|
|
330
|
+
```json
|
|
331
|
+
{
|
|
332
|
+
"error": "invalid_scope",
|
|
333
|
+
"error_description": "One or more scopes are invalid: sfcc.invalid-scope"
|
|
334
|
+
}
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
**Solution:** Check scope name spelling and remove invalid scopes.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: b2c-scapi-shopper
|
|
3
|
+
description: Call Shopper Commerce APIs (SCAPI) from headless storefronts and composable commerce apps. Use this skill whenever the user is building with PWA Kit, Storefront Next (SFNext), or a headless frontend and needs to search products, manage baskets, submit orders, access customer data, or set shopper context. Also use when they ask about Shopper API authentication, checkout flows from a frontend app, or performance optimization for API calls — even if they just say "search products from my PWA" or "build a headless checkout".
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Shopper Commerce APIs
|
|
7
|
+
|
|
8
|
+
Build storefront product, basket, checkout, customer, and context flows with SCAPI.
|
|
9
|
+
For backend management use the `b2c-scapi-admin` skill.
|
|
10
|
+
|
|
11
|
+
## Tool choice
|
|
12
|
+
|
|
13
|
+
When B2C MCP is available:
|
|
14
|
+
- Read `skill://mcp/b2c-mcp-scapi/SKILL.md` once through resources or `skills_read` before
|
|
15
|
+
code-mode tools; pass `skillRead: true`.
|
|
16
|
+
- `scapi_search` with `authType: "shopper"` discovers bundled contracts offline.
|
|
17
|
+
Find method/path/operationId first, then selected inputs, response fields, and
|
|
18
|
+
security. Mixed Admin/Shopper operations can appear in either filter.
|
|
19
|
+
- Shopper execution is unsupported in `scapi_execute`; adding a SLAS client
|
|
20
|
+
cannot enable it. Execute storefront flows through the application's Shopper
|
|
21
|
+
SDK/client with the appropriate SLAS token flow. Prefer dedicated tools where available.
|
|
22
|
+
- `scapi_schemas_list` retrieves live tenant contracts and custom attributes;
|
|
23
|
+
`scapi_custom_apis_get_status` checks custom registration. Code mode does not
|
|
24
|
+
execute custom APIs.
|
|
25
|
+
- `config_inspect` reports configured values with masking. `docs_search`/`docs_read`
|
|
26
|
+
answer platform semantics, authentication, and limits; avoid duplicate contract reads.
|
|
27
|
+
|
|
28
|
+
CLI alternatives: `b2c scapi schemas list`,
|
|
29
|
+
`b2c scapi schemas get <family> <name> <version>`, and `b2c setup inspect`.
|
|
30
|
+
These schema commands use live Schemas API access; MCP discovery is offline.
|
|
31
|
+
|
|
32
|
+
## Integration essentials
|
|
33
|
+
|
|
34
|
+
- Reuse configured shortCode, organizationId, and siteId; do not invent identifiers.
|
|
35
|
+
- Shopper authentication uses SLAS guest/registered flows and client scopes;
|
|
36
|
+
Account Manager credentials are not a substitute. Keep private-client secrets
|
|
37
|
+
and token exchange on the backend.
|
|
38
|
+
- Discover the contract for the selected API version. Examples are illustrative;
|
|
39
|
+
verify version-specific behavior and limits in official docs.
|
|
40
|
+
- Preserve basket/order state and handle errors explicitly. Page/filter responses
|
|
41
|
+
and return only fields needed by the next operation.
|
|
42
|
+
- For headless payment authorization, inspect
|
|
43
|
+
the order-PI hooks in the `b2c-hooks` skill ("Headless Order Payment") and the
|
|
44
|
+
order lifecycle in the `b2c-ordering` skill before choosing a placement flow.
|
|
45
|
+
|
|
46
|
+
## Conditional references
|
|
47
|
+
|
|
48
|
+
- [Client examples](references/CLIENT-EXAMPLES.md): implementing auth and API calls.
|
|
49
|
+
- [Checkout](references/CHECKOUT-FLOW.md): basket-to-order workflow.
|
|
50
|
+
- [Common patterns](references/COMMON-PATTERNS.md): errors, pagination, field selection.
|
|
51
|
+
- [Scopes](references/SCOPES.md): Shopper grants by family.
|
|
52
|
+
- `b2c-slas` skill: CLI client management.
|
|
53
|
+
- `b2c-slas-auth-patterns` skill: OTP, passkeys, session bridge.
|
|
54
|
+
- Official docs: `commerce-api/use-shopper-api`, `commerce-api/slas`,
|
|
55
|
+
`commerce-api/work-with-baskets-orders`, `commerce-api/shopper-context-best-practices`,
|
|
56
|
+
`commerce-api/auth-z-scope-catalog`, `commerce-api/performance`.
|