@frontera-sdk/blueprint 1.53.7 → 1.53.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontera-sdk/blueprint",
3
- "version": "1.53.7",
3
+ "version": "1.53.9",
4
4
  "description": "React hooks for reading Blueprint data and invoking governed Actions from inside a Frontera app.",
5
5
  "keywords": [
6
6
  "frontera",
@@ -56,7 +56,7 @@
56
56
  "smoke": "bun run scripts/smoke.ts"
57
57
  },
58
58
  "dependencies": {
59
- "@frontera-sdk/core": "1.53.7"
59
+ "@frontera-sdk/core": "1.53.9"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@tanstack/react-query": "^5.90.21",
@@ -238,15 +238,15 @@ export interface ActionDescriptor {
238
238
  * - `not_deployed`: published, but no deployment runs it here (never
239
239
  * deployed, or switched off).
240
240
  * - `no_workspace_grant`: this workspace holds no Blueprint grant on the
241
- * Action's object type.
241
+ * Action's object type, or on a type it writes records of.
242
242
  * - `not_a_person`: the caller acts as a key, which belongs to no member.
243
243
  * - `not_a_member`: the person is not a member of this workspace.
244
244
  * - `business_user`: a Business user holds no governed authority here.
245
245
  * - `role_cannot_submit`: the person's role may not submit Action requests.
246
246
  * - `capability_not_granted`: the role does not hold the Action's invoke capability.
247
247
  * - `agent_not_active`, `agent_no_grant`: for an Agent caller.
248
- * - `agent_cannot_act`: the Agent may read the Action's object type, but its
249
- * grant there has no `act`, so it submits no Action on it.
248
+ * - `agent_cannot_act`: the Agent may read the Action's object type, or a
249
+ * type it writes records of, but its grant there has no `act`.
250
250
  * - `refused`: refused for a reason not listed.
251
251
  * - `unknown`: the platform did not say (the caller may not ask, such as a
252
252
  * person signed in to an externally hosted App, or a platform that
@@ -415,6 +415,16 @@ export interface ActionRequest {
415
415
  apiName?: string
416
416
  lifecycle: ActionRequestLifecycle
417
417
  effectCertainty?: ActionEffectCertainty
418
+ /**
419
+ * The records the request names beside its subject, in the order the
420
+ * Action declares them: records it creates and records it changes or
421
+ * deletes. A record the request sets nothing on, because every input that
422
+ * sets it is left out, is listed but not written. Absent when the Action
423
+ * writes its subject only, and from a platform that predates the field.
424
+ * Read it to refresh what the request touched once `actionEffectOf` reads
425
+ * `applied`.
426
+ */
427
+ records?: Array<{ objectTypeId: string; objectId: string }>
418
428
  createdAt?: string
419
429
  updatedAt?: string
420
430
  /**
@@ -594,6 +604,10 @@ export interface SubmitActionInput {
594
604
  * Parameter values, keyed by the Action's parameter API names. Leave out
595
605
  * the key input and `expectedVersion`: they are filled from `objectId` and
596
606
  * `expectedVersion` (see those).
607
+ *
608
+ * An optional parameter with no default takes `null`, which empties the
609
+ * property it sets; leaving it out keeps the property as it is. `undefined`
610
+ * is leaving it out (JSON drops it), so clear a field with `null`.
597
611
  */
598
612
  input: Record<string, unknown>
599
613
  /**