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