@tokenoftrust/storefront-runner 6.3.4 → 6.3.5

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.
@@ -2,7 +2,7 @@
2
2
  * Scope validation — the compliance-floor gate for Storefront Private Apps.
3
3
  * See `docs/private-apps/feature-brief.md` §"The
4
4
  * compliance floor" and the machine-readable contract:
5
- * - `docs/private-apps/contract/scopes.json` — the 8-scope V1 catalog.
5
+ * - `docs/private-apps/contract/scopes.json` — the 10-scope V1 catalog.
6
6
  * - `docs/private-apps/contract/forbidden-scopes.json` — the 8 ids that map
7
7
  * to floor clauses (`checkout:mutate`, `tax:mutate`, …) and must NEVER be
8
8
  * grantable.
@@ -28,6 +28,8 @@ export const V1_SCOPES = [
28
28
  "reports:read",
29
29
  "attribution:write",
30
30
  "widgets:launch",
31
+ "fulfillment:process",
32
+ "orders:read:recipient",
31
33
  ] as const;
32
34
  export type V1Scope = (typeof V1_SCOPES)[number];
33
35
 
@@ -50,7 +50,9 @@ export type WebhookTopic =
50
50
  | "order.created"
51
51
  | "order.fulfilled"
52
52
  | "customer.marketing_consent.updated"
53
- | "attribution.finalized";
53
+ | "attribution.finalized"
54
+ | "fulfillment.assignment.created"
55
+ | "fulfillment.assignment.updated";
54
56
 
55
57
  /** Mirrors `Delivery.state` in `docs/private-apps/contract/openapi.yaml` EXACTLY. */
56
58
  export type DeliveryState = "pending" | "retrying" | "delivered" | "dead-lettered";
@@ -29,6 +29,8 @@ export const TOPIC_REQUIRED_SCOPE: Record<WebhookTopic, string | null> = {
29
29
  "order.fulfilled": "orders:webhook",
30
30
  "customer.marketing_consent.updated": "customers:read:minimal",
31
31
  "attribution.finalized": "attribution:write",
32
+ "fulfillment.assignment.created": "fulfillment:process",
33
+ "fulfillment.assignment.updated": "fulfillment:process",
32
34
  };
33
35
 
34
36
  /** `type`'s reverse-DNS prefix (asyncapi.yaml `CloudEventEnvelope.type`). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/storefront-runner",
3
- "version": "6.3.4",
3
+ "version": "6.3.5",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "World-shareable storefront runner: multi-tenant renderer on Astro/Cloudflare. No control plane.",
6
6
  "packageManager": "pnpm@11.9.0",