(kind: string, offset: number)
| 6 | // specific list endpoint so a caller can't move a list_creatives cursor onto |
| 7 | // list_accounts and accidentally land at a meaningful offset. |
| 8 | export function encodeOffsetCursor(kind: string, offset: number): string { |
| 9 | return Buffer.from(`${kind}:offset:${offset}`).toString('base64url'); |
| 10 | } |
| 11 | |
| 12 | // Returns null when the cursor is present but malformed (or scoped to a |
| 13 | // different list endpoint). The caller MUST surface INVALID_REQUEST in that |
no outgoing calls
no test coverage detected