@sanity-labs/client-fake-for-test 0.15.0 → 0.16.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/README.md +6 -4
- package/dist/index.cjs +88 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -6
- package/dist/index.d.ts +27 -6
- package/dist/index.js +88 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,12 +76,12 @@ More patterns — passing the fake to code typed against `SanityClient`, asserti
|
|
|
76
76
|
| Patch | `patch(id)` chain → `.commit()` | Ops: `.set`, `.setIfMissing`, `.unset`, `.inc`, `.dec`, `.insert(position, anchor, items)`, `.ifRevisionId` |
|
|
77
77
|
| Transaction | `transaction()` chain → `.commit()` | Mutations: `.create`, `.createOrReplace`, `.createIfNotExists`, `.delete`, `.patch(id, recipe)`. Atomic — any throw rolls back the whole batch. Default result is a `MultipleMutationResult` (`{ transactionId, documentIds, results }`) |
|
|
78
78
|
| Actions | `action(action \| action[])` | Content Lake release / version actions, applied atomically |
|
|
79
|
-
| Releases | `releases.*`, `createVersion`, `unpublishVersion` | Content Releases lifecycle — create / edit / schedule / publish / archive / delete, plus version create / replace / discard / unpublish |
|
|
79
|
+
| Releases | `releases.*`, `createVersion`, `unpublishVersion` | Content Releases lifecycle — create / edit / schedule / publish / archive / delete, plus version create / replace / discard / unpublish. `createVersion({ baseId, publishedId, releaseId })` (or `version.create` with `baseId` + `versionId`) copies the base document, `_type` included, into the version; a missing base fails. A failed revision precondition (`ifDraftRevisionId`, `ifPublishedRevisionId`, `ifBaseRevisionId`) carries `statusCode: 409`, as the Actions API answers |
|
|
80
80
|
| Config | `config()` | Returns `{ projectId, dataset, resource?, perspective, token?, useProjectHostname }` |
|
|
81
81
|
| Config | `getDataUrl(operation, path?)` | The same URL `@sanity/client` builds: `<resource base>/<operation>/<path>` on a `resource` handle, `/data/<operation>/<dataset>/<path>` otherwise |
|
|
82
82
|
| Config | `withConfig({ projectId?, dataset?, resource?, perspective?, accessControl?, token?, useProjectHostname? })` | Sibling handle into the same multi-resource registry; `resource` points it at a Media Library, Canvas, dashboard or dataset (see [Resource types](#resource-types-media-library-canvas-dashboard)); `token` binds a registered identity (see the token→identity registry below), `accessControl` rebinds it inline — the two are mutually exclusive; `useProjectHostname: false` mints a global-hosted sibling |
|
|
83
83
|
| Perspectives | `raw` / `published` / `drafts` / release stacks / a single release name or comma-joined stack (`"rA"`, `"drafts,rA"`), as `@sanity/client` sends them | Per-client default or per-`fetch` override; draft/version layering with `_originalId` projection |
|
|
84
|
-
| HTTP | `request({ url? \| uri? })` | Present **only** when the handle has an acting identity (`accessControl`, or a bound `token`). Serves `/users/me` (host-aware: project-scoped record on the project host, `globalUser` on a global-hosted or `resource` handle), the handle's ACL (`<data base>/acl`, or an explicit `aclPath`), `/projects/<projectId>` (the project's members: `{ id, isRobot?, roles? }` rows, one per distinct resolved project user, plus `organizationId` when configured), `/projects/<projectId>/users/<ids>` (project-user records with `id` + `sanityUserId`), the History API, resource lookup and the Access API (see [Resource types](#resource-types-media-library-canvas-dashboard)). Calling it without one throws a guidance error. |
|
|
84
|
+
| HTTP | `request({ url? \| uri? })` | Present **only** when the handle has an acting identity (`accessControl`, or a bound `token`). Serves `/users/me` (host-aware: project-scoped record on the project host, `globalUser` on a global-hosted or `resource` handle), the handle's ACL (`<data base>/acl`, or an explicit `aclPath`), `/projects/<projectId>` (the project's members: `{ id, isRobot?, roles? }` rows, one per distinct resolved project user, plus `organizationId` when configured), `/projects/<projectId>/users/<ids>` (project-user records with `id` + `sanityUserId`), `/projects/<projectId>/roles` (the project role catalog), the History API, resource lookup and the Access API (see [Resource types](#resource-types-media-library-canvas-dashboard)). Calling it without one throws a guidance error. |
|
|
85
85
|
|
|
86
86
|
#### Mutation return shapes
|
|
87
87
|
|
|
@@ -199,12 +199,14 @@ await canvas.releases.create({ releaseId: "r1" }); // 404 Cannot POST /canvases/
|
|
|
199
199
|
| Access API `…/user-permissions/me`, `…/me/check` | ✅ | ✅ | ✅ | ✅ |
|
|
200
200
|
| Access API `…/users` | ✅ | ✅ | 403 | 403 |
|
|
201
201
|
| Access API `…/users/<sanityUserId>` (served on `organization`, below) | 403 | 403 | 403 | 403 |
|
|
202
|
-
| Access API `…/roles`, `…/roles/<roleName>` | ✅ | ✅ with `sanity.media-library.roles.read`, else 403 | 403 | 403 |
|
|
202
|
+
| Access API `…/roles`, `…/roles/<roleName>` | ✅ with `sanity.project.roles.read`, else 403 | ✅ with `sanity.media-library.roles.read`, else 403 | 403 | 403 |
|
|
203
|
+
| Project role catalog `/projects/<projectId>/roles` | ✅ with `sanity.project.roles.read`, else 403 | n/a | n/a | n/a |
|
|
203
204
|
| Org lookup | `/projects/<projectId>` | `GET /media-libraries/<id>` | `GET /canvases/<id>` | `GET /dashboards/<id>` |
|
|
204
205
|
|
|
205
206
|
- **Access API.** Paths are `/access/<type>/<id>/…` with type `organization`, `project`, `media-library`, `canvas` or `dashboard`. An identity's `access` entries, keyed `"<type>:<id>"`, hold its `roles` there (membership) and the `permissions` the `user-permissions` endpoints report. Every identity is a project member with its project roles. A user row is `{ sanityUserId, profile: { id, displayName, email, provider, createdAt }, memberships: [{ resourceType, resourceId, roleNames }] }`; the fake does not model `provider` or `createdAt`, so they are always `"sanity"` and the epoch, and `email` is `""` where the identity seeds none. Listings come back on one page (`nextCursor: null`); users listings add `totalCount`. `includeImpliedRoles` is accepted and ignored: rows carry the seeded roles only, so seed an implied role explicitly when a test needs it. An unknown type answers 400 `Invalid resource type <type>`. An id the registry does not hold (never seeded, written or addressed) answers 404 `Media library not found` / `Canvas not found` / `Dashboard not found`, except `…/me/check`, which answers `false` as staging does. `…/users/<sanityUserId>` is served only on the organization, where the fake checks members read; elsewhere it answers 403 (the reference requires `sanity.<type>.members.read` for it; no type's single-user read was probed on staging, only the media-library listing). The other 403 cells were not proven on staging (no token could list them), so they answer the way the platform refuses a missing permission: `{ statusCode: 403, error: "Forbidden", message: "You do not have permission to access this resource" }`.
|
|
206
207
|
- **Members.** Every member listing (`/projects/<projectId>`, `…/users`, `…/roles`) sees the registered identities plus, on a handle created with inline `accessControl`, that handle's own actor. Inline config belongs to its handle: a token sibling does not see it.
|
|
207
|
-
- **Roles.** `…/roles` answers `{ data: [role], nextCursor: null }` and `…/roles/<roleName>` one role (404 `Role not found` for a name no member holds). A role is `{ name, title, description?, resourceType, resourceId, appliesToUsers, appliesToRobots, permissions }`, collected from the roles the members hold on the resource. The fake does not model role definitions, so `title` is the name where the seed gives none, both `appliesTo…` flags are `true` and `permissions` is `[]`. A media library serves its roles only to an actor whose `"media-library:<id>"` entry holds `sanity.media-library.roles.read` in `permissions`, else 403, as the reference requires.
|
|
208
|
+
- **Roles.** `…/roles` answers `{ data: [role], nextCursor: null }` and `…/roles/<roleName>` one role (404 `Role not found` for a name no member holds). A role is `{ name, title, description?, resourceType, resourceId, appliesToUsers, appliesToRobots, permissions }`, collected from the roles the members hold on the resource. The fake does not model role definitions, so `title` is the name where the seed gives none, both `appliesTo…` flags are `true` and `permissions` is `[]`. A media library serves its roles only to an actor whose `"media-library:<id>"` entry holds `sanity.media-library.roles.read` in `permissions`, else 403, as the reference requires. Likewise a project serves its roles only to an actor whose `"project:<id>"` entry holds `sanity.project.roles.read` (on staging every stock user role holds it), else 403.
|
|
209
|
+
- **Project role catalog.** `GET /projects/<projectId>/roles` answers the older projects API's bare array, one row per role the project's members hold: `{ name, title, description?, projectId, appliesToUsers, appliesToRobots }`, with the same unmodelled defaults as the Access API rows. The platform also sends `isCustom` and a `grants` tree per role; the fake does not model role definitions, so it omits both. It needs `sanity.project.roles.read` on the actor's `"project:<projectId>"` entry, else 403 with the Access API's permission body.
|
|
208
210
|
- **Organization.** `/access/organization/<organizationId>/users` and `…/users/<sanityUserId>` (one row, or 404 `User not found` for a non-member) serve the members of the client's `organizationId`: identities with roles in their `"organization:<id>"` entry. Each row lists the organization membership, then the member's roles on every resource the client holds (its libraries, canvases, dashboards and projects), as the platform's organization row does. Like the platform, it needs `sanity.organization.members.read` in the actor's `"organization:<id>"` `permissions` (the built-in `member` role grants it), else 403. Another organization id answers 404 `Organization not found`; `…/roles` answers 403.
|
|
209
211
|
- **User attributes.** `GET /organizations/<organizationId>/users/me/attributes` answers the caller's own attributes there: `{ sanityUserId, organizationId, attributes: [{ type, key, values: { saml?, sanity? }, activeSource, activeValue }] }`, ordered by key. Seed them as `attributes: [{ key, type, values }]` on the identity's `"organization:<id>"` entry; the Sanity value takes precedence over the SAML one for `activeSource` and `activeValue`, as on the platform. No permission is needed. `limit` (default 50) and `cursor` (the last key of the previous page) page the list. A member with no seeded attributes gets `attributes: []`; a caller without roles in the organization gets 404 `User not found`, and another organization id 404 `Organization not found`.
|
|
210
212
|
- **History.** Every committed write since the client was created is recorded per resource, authored by the acting identity; seeded documents can be read at their seeded `_rev`. A handle answers for its own resource, and hides documents its grants cannot read, as reads do (a transaction that also touched such a document is served without it). Events model `createLiveDocument` / `updateLiveDocument` only.
|
package/dist/index.cjs
CHANGED
|
@@ -284,6 +284,8 @@ const ACCESS_CAPABILITIES = {
|
|
|
284
284
|
},
|
|
285
285
|
project: {
|
|
286
286
|
roles: "served",
|
|
287
|
+
// Also gates `GET /projects/<id>/roles`; the stock user roles all hold it on staging.
|
|
288
|
+
rolesPermission: "sanity.project.roles.read",
|
|
287
289
|
users: "served",
|
|
288
290
|
// Single-user reads are served only where the fake checks members read (the
|
|
289
291
|
// organization); elsewhere they refuse rather than answer unchecked.
|
|
@@ -333,7 +335,7 @@ function dataUrl(args) {
|
|
|
333
335
|
const base = `/${operation}/${dataset}`;
|
|
334
336
|
return `/data${path !== void 0 ? `${base}/${path}` : base}`.replace(/\/($|\?)/, "$1");
|
|
335
337
|
}
|
|
336
|
-
const ACCESS_PATH = /^\/access\/([^/]+)\/([^/]+)(\/.*)?$/, ACCESS_USER_PATH = /^\/users\/([^/]+)$/, ACCESS_ROLE_PATH = /^\/roles\/([^/]+)$/, MY_ATTRIBUTES_PATH = /^\/organizations\/([^/]+)\/users\/me\/attributes$/, DATA_HISTORY_PATH = /^\/data\/history\/([^/]+)(\/.*)$/;
|
|
338
|
+
const ACCESS_PATH = /^\/access\/([^/]+)\/([^/]+)(\/.*)?$/, ACCESS_USER_PATH = /^\/users\/([^/]+)$/, ACCESS_ROLE_PATH = /^\/roles\/([^/]+)$/, PROJECT_ROLES_PATH = /^\/projects\/([^/]+)\/roles$/, MY_ATTRIBUTES_PATH = /^\/organizations\/([^/]+)\/users\/me\/attributes$/, DATA_HISTORY_PATH = /^\/data\/history\/([^/]+)(\/.*)$/;
|
|
337
339
|
function page(data) {
|
|
338
340
|
return { data, nextCursor: null };
|
|
339
341
|
}
|
|
@@ -347,6 +349,11 @@ async function servePlatformRequest(ctx, url) {
|
|
|
347
349
|
const organizationId = decodeURIComponent(myAttributes[1]);
|
|
348
350
|
return serveMyAttributes({ ctx, request, organizationId, query });
|
|
349
351
|
}
|
|
352
|
+
const projectRoles = path.match(PROJECT_ROLES_PATH);
|
|
353
|
+
if (projectRoles !== null) {
|
|
354
|
+
const projectId = decodeURIComponent(projectRoles[1]);
|
|
355
|
+
return serveProjectRoles({ ctx, request, projectId });
|
|
356
|
+
}
|
|
350
357
|
const access = path.match(ACCESS_PATH);
|
|
351
358
|
if (access !== null) {
|
|
352
359
|
const [, type, id, rest2] = access;
|
|
@@ -414,6 +421,35 @@ async function readHistory(args) {
|
|
|
414
421
|
}
|
|
415
422
|
};
|
|
416
423
|
}
|
|
424
|
+
function serveGated(args) {
|
|
425
|
+
const { capability, permission, held, request, serve } = args;
|
|
426
|
+
return serveCapability(capability, request, () => {
|
|
427
|
+
if (permission !== void 0 && !held.includes(permission)) throw noPermission(request);
|
|
428
|
+
return serve();
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
function serveProjectRoles(args) {
|
|
432
|
+
const { ctx, request, projectId } = args, row = ACCESS_CAPABILITIES.project;
|
|
433
|
+
return serveGated({
|
|
434
|
+
capability: row.roles,
|
|
435
|
+
permission: row.rolesPermission,
|
|
436
|
+
held: ctx.actorAccess()?.[accessKey("project", projectId)]?.permissions ?? [],
|
|
437
|
+
request,
|
|
438
|
+
serve: () => ({
|
|
439
|
+
value: rolesOn({
|
|
440
|
+
resource: { type: "project", id: projectId },
|
|
441
|
+
identities: ctx.identities()
|
|
442
|
+
}).map((role) => ({
|
|
443
|
+
name: role.name,
|
|
444
|
+
title: role.title,
|
|
445
|
+
...role.description !== void 0 ? { description: role.description } : {},
|
|
446
|
+
projectId,
|
|
447
|
+
appliesToUsers: role.appliesToUsers,
|
|
448
|
+
appliesToRobots: role.appliesToRobots
|
|
449
|
+
}))
|
|
450
|
+
})
|
|
451
|
+
});
|
|
452
|
+
}
|
|
417
453
|
function serveAccess(args) {
|
|
418
454
|
const { ctx, request, type, id, rest, query } = args, row = accessCapabilitiesOf(type);
|
|
419
455
|
if (row === void 0) throw invalidAccessType(request, type);
|
|
@@ -429,11 +465,7 @@ function serveAccess(args) {
|
|
|
429
465
|
}
|
|
430
466
|
if (row.unknown !== void 0 && !row.unknown.holds(registry, id))
|
|
431
467
|
throw row.unknown.refusal(request);
|
|
432
|
-
const gated = (capability, permission, serve) =>
|
|
433
|
-
if (permission !== void 0 && !permissions.includes(permission))
|
|
434
|
-
throw noPermission(request);
|
|
435
|
-
return serve();
|
|
436
|
-
}), users = (capability, serve) => gated(capability, row.usersPermission, serve), roles = () => rolesOn({ resource, identities: ctx.identities() }), user = rest.match(ACCESS_USER_PATH);
|
|
468
|
+
const gated = (capability, permission, serve) => serveGated({ capability, permission, held: permissions, request, serve }), users = (capability, serve) => gated(capability, row.usersPermission, serve), roles = () => rolesOn({ resource, identities: ctx.identities() }), user = rest.match(ACCESS_USER_PATH);
|
|
437
469
|
if (user !== null)
|
|
438
470
|
return users(row.user, () => {
|
|
439
471
|
const sanityUserId = decodeURIComponent(user[1]), record = usersOn({ resource, registry, identities: ctx.identities() }).find(
|
|
@@ -715,7 +747,7 @@ function makeRequestImpl(ctx) {
|
|
|
715
747
|
const served = path === void 0 ? void 0 : await servePlatformRequest(platform, path);
|
|
716
748
|
if (served !== void 0) return served.value;
|
|
717
749
|
throw fakeError(
|
|
718
|
-
`request(): no handler for path "${path}". With access control configured, the fake serves "/users/me", the handle's ACL ("<data base>/acl"), "/projects/<projectId>" (members), "/projects/<projectId>/users/<ids>", the History API (client.getDataUrl("history", \u2026)), resource lookup ("/media-libraries/<id>", "/canvases/<id>", "/dashboards/<id>") and the Access API ("/access/<type>/<id>/roles[/<name>] | users[/<id>] | user-permissions/me[/check]") and the caller's attributes ("/organizations/<id>/users/me/attributes"). For any other endpoint, register a stub (client.stub("request", fn)) or intercept the HTTP call with a tool like MSW.`
|
|
750
|
+
`request(): no handler for path "${path}". With access control configured, the fake serves "/users/me", the handle's ACL ("<data base>/acl"), "/projects/<projectId>" (members), "/projects/<projectId>/users/<ids>", "/projects/<projectId>/roles", the History API (client.getDataUrl("history", \u2026)), resource lookup ("/media-libraries/<id>", "/canvases/<id>", "/dashboards/<id>") and the Access API ("/access/<type>/<id>/roles[/<name>] | users[/<id>] | user-permissions/me[/check]") and the caller's attributes ("/organizations/<id>/users/me/attributes"). For any other endpoint, register a stub (client.stub("request", fn)) or intercept the HTTP call with a tool like MSW.`
|
|
719
751
|
);
|
|
720
752
|
};
|
|
721
753
|
}
|
|
@@ -1261,6 +1293,7 @@ async function applyAction(store, action, hooks) {
|
|
|
1261
1293
|
return store.remove(release._id), { transactionId: cryptoRandomKey() };
|
|
1262
1294
|
}
|
|
1263
1295
|
case "sanity.action.document.version.create": {
|
|
1296
|
+
if ("baseId" in action) return createVersionFromBase(store, action);
|
|
1264
1297
|
const releaseId = action.releaseId ?? (action.document._id !== void 0 ? parseVersionId(action.document._id).releaseId : void 0);
|
|
1265
1298
|
if (releaseId === void 0)
|
|
1266
1299
|
throw fakeError(
|
|
@@ -1332,10 +1365,33 @@ function requireDraftOf(action) {
|
|
|
1332
1365
|
`${action.actionType}: draftId "${action.draftId}" is not the draft of publishedId "${action.publishedId}" \u2014 expected draftId "drafts.${action.publishedId}".`
|
|
1333
1366
|
);
|
|
1334
1367
|
}
|
|
1368
|
+
function createVersionFromBase(store, action) {
|
|
1369
|
+
const { releaseId, publishedId } = parseVersionId(action.versionId);
|
|
1370
|
+
if (publishedId !== action.publishedId)
|
|
1371
|
+
throw fakeError(
|
|
1372
|
+
`version.create: versionId "${action.versionId}" is not a version of publishedId "${action.publishedId}" (expected "${versionDocId(releaseId, action.publishedId)}").`
|
|
1373
|
+
);
|
|
1374
|
+
requireActive(getRelease(store, releaseId));
|
|
1375
|
+
const base = store.get(action.baseId);
|
|
1376
|
+
if (base === void 0)
|
|
1377
|
+
throw fakeError(
|
|
1378
|
+
`Cannot create version "${action.versionId}": base document "${action.baseId}" not found. version.create with \`baseId\` copies an existing document; pass \`document\` instead when there is nothing to copy.`
|
|
1379
|
+
);
|
|
1380
|
+
requireRevisionMatch(action.baseId, base._rev, action.ifBaseRevisionId);
|
|
1381
|
+
const existing = store.get(action.versionId), promoted = promote({
|
|
1382
|
+
...base,
|
|
1383
|
+
_id: action.versionId,
|
|
1384
|
+
_createdAt: existing?._createdAt ?? nowIso()
|
|
1385
|
+
});
|
|
1386
|
+
return store.put(promoted), { transactionId: cryptoRandomKey() };
|
|
1387
|
+
}
|
|
1335
1388
|
function requireRevisionMatch(documentId, actualRev, expectedRev) {
|
|
1336
1389
|
if (!(expectedRev === void 0 || actualRev === expectedRev))
|
|
1337
|
-
throw
|
|
1338
|
-
|
|
1390
|
+
throw Object.assign(
|
|
1391
|
+
fakeError(
|
|
1392
|
+
`Revision precondition failed for "${documentId}": expected _rev "${expectedRev}" but the document is at ${actualRev === void 0 ? "no revision (missing)" : `"${actualRev}"`}.`
|
|
1393
|
+
),
|
|
1394
|
+
{ statusCode: 409 }
|
|
1339
1395
|
);
|
|
1340
1396
|
}
|
|
1341
1397
|
async function applyActions(store, actions, hooks) {
|
|
@@ -1363,6 +1419,10 @@ async function applyActions(store, actions, hooks) {
|
|
|
1363
1419
|
break;
|
|
1364
1420
|
}
|
|
1365
1421
|
case "sanity.action.document.version.create": {
|
|
1422
|
+
if ("baseId" in a) {
|
|
1423
|
+
remember(a.versionId);
|
|
1424
|
+
break;
|
|
1425
|
+
}
|
|
1366
1426
|
const releaseId = a.releaseId ?? (typeof a.document._id == "string" ? parseVersionId(a.document._id).releaseId : void 0);
|
|
1367
1427
|
releaseId !== void 0 && remember(versionDocId(releaseId, a.publishedId));
|
|
1368
1428
|
break;
|
|
@@ -2126,12 +2186,25 @@ function makeHandle(handleArgs) {
|
|
|
2126
2186
|
unarchive: ({ releaseId }) => runAction({ actionType: "sanity.action.release.unarchive", releaseId }),
|
|
2127
2187
|
delete: ({ releaseId }) => runAction({ actionType: "sanity.action.release.delete", releaseId })
|
|
2128
2188
|
},
|
|
2129
|
-
createVersion: (
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2189
|
+
createVersion: (params) => {
|
|
2190
|
+
const { releaseId, publishedId, document, baseId, ifBaseRevisionId } = params;
|
|
2191
|
+
if (document)
|
|
2192
|
+
return runAction({
|
|
2193
|
+
actionType: "sanity.action.document.version.create",
|
|
2194
|
+
releaseId,
|
|
2195
|
+
publishedId,
|
|
2196
|
+
document
|
|
2197
|
+
});
|
|
2198
|
+
if (baseId === void 0)
|
|
2199
|
+
throw fakeError("createVersion() requires `baseId` when no `document` is provided.");
|
|
2200
|
+
return runAction({
|
|
2201
|
+
actionType: "sanity.action.document.version.create",
|
|
2202
|
+
publishedId,
|
|
2203
|
+
baseId,
|
|
2204
|
+
versionId: `versions.${releaseId}.${publishedId}`,
|
|
2205
|
+
...ifBaseRevisionId !== void 0 ? { ifBaseRevisionId } : {}
|
|
2206
|
+
});
|
|
2207
|
+
},
|
|
2135
2208
|
unpublishVersion: ({ releaseId, publishedId }) => runAction({
|
|
2136
2209
|
actionType: "sanity.action.document.version.unpublish",
|
|
2137
2210
|
versionId: `versions.${releaseId}.${publishedId}`,
|