(operationId)
| 21 | |
| 22 | // Extract action key from operationId (e.g. accountApikeysCreate -> create) |
| 23 | function toActionKey(operationId) { |
| 24 | const match = operationId.match(/[A-Z][a-z]+$/) |
| 25 | return match ? match[0].toLowerCase() : operationId |
| 26 | } |
| 27 | |
| 28 | // Build nested object structure from path segments (same as core generate-wrapper) |
| 29 | function buildNestedObject(obj, segments, operationId) { |