You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Key Value output contracts for action commands (#474)
Adds action metadata for commands that need it:
- `delete`: `{ "data": ..., "meta": { "deleted": true|false, "message": "..." } }`
- `suspend`: `{ "data": ..., "meta": { "suspended": true|false, "message": "..." } }`
Basically, define and fully control the JSON output for these commands instead of passing along raw API payloads.
---
These commands all operate on a single existing KV, so they can use the same flattened item contract introduced by `kv get`.
`delete` and `suspend` are special because they can run in preview mode. Their JSON needs to represent both the KV and the operation state, so this PR gives them explicit `data` and `meta` envelopes.
`resume` does not need operation metadata; it returns the resumed `KeyValueOut` directly.
GROW-2587: https://linear.app/render-com/issue/GROW-2587/slim-down-kv-json-output-to-resource-only
GitOrigin-RevId: e4b264a2796f1e570f55a5a73a5f40474ee23e9f
0 commit comments