(status: number | undefined)
| 143 | const DEFINITIVE_DENIAL_STATUSES: ReadonlySet<number> = new Set([401, 403, 404]); |
| 144 | |
| 145 | export const isDefinitiveWorkOSDenialStatus = (status: number | undefined): boolean => |
| 146 | status !== undefined && DEFINITIVE_DENIAL_STATUSES.has(status); |
| 147 | |
| 148 | // Tag-based guards (same pattern as `isOAuth2Error` in core/sdk/oauth-helpers): |
| 149 | // the untyped failure channels these run against carry values that crossed |
no outgoing calls
no test coverage detected